<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5160delta - what is new for perl v5.16.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5160delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5160delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5160delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5160delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5160delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5160delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5160delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5160delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5160delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5160delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5160delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5160delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5160delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5160delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5160delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5160delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5160delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5160delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5160delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5160delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5160delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5160delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5160delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5160delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5160delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5160delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5160delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5160delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5160delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5160delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5160delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5160delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5160delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5160delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5160delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5160delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5160delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5160delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5160delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5160delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5160delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5160delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5160delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5160delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5160delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5160delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5160delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5160delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5160delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5160delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5160delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5160delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5160delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5160delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5160delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5160delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5160delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5160delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5160delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5160delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5160delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5160delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5160delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5160delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5160delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5160delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5160delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5160delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5160delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5160delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5160delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5160delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5160delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5160delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5160delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5160delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5160delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5160delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5160delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5160delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5160delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5160delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5160delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5160delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5160delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5160delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5160delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5160delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5160delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5160delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5160delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5160delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5160delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5160delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5160delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5160delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5160delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5160delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5160delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5160delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5160delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5160delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5160delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5160delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5160delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5160delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5160delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5160delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5160delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5160delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5160delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5160delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5160delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5160delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5160delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5160delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5160delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5160delta.html">perl5160delta</a>
          <div id="more">
            (<a href="perl5160delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5160delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Notice">Notice</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#use-VERSION">use VERSION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#__SUB__">__SUB__</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-and-Improved-Built-ins">New and Improved Built-ins</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#More-consistent-eval">More consistent eval</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#substr-lvalue-revamp">substr lvalue revamp</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Return-value-of-tied">Return value of tied</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Unicode-Support">Unicode Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Supports-(almost)-Unicode-6.1">Supports (almost) Unicode 6.1</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#use-charnames-is-no-longer-needed-for-%5CN%7Bname%7D">use charnames is no longer needed for \N{name}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#%5CN%7B...%7D-can-now-have-Unicode-loose-name-matching">\N{...} can now have Unicode loose name matching</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Unicode-Symbol-Names">Unicode Symbol Names</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Improved-ability-to-mix-locales-and-Unicode,-including-UTF-8-locales">Improved ability to mix locales and Unicode, including UTF-8 locales</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-function-fc-and-corresponding-escape-sequence-%5CF-for-Unicode-foldcase">New function fc and corresponding escape sequence \F for Unicode foldcase</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-Unicode-Script_Extensions-property-is-now-supported.">The Unicode Script_Extensions property is now supported.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#XS-Changes">XS Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Improved-typemaps-for-Some-Builtin-Types">Improved typemaps for Some Builtin Types</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#is_utf8_char()">is_utf8_char()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Added-is_utf8_char_buf()">Added is_utf8_char_buf()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Other-is_utf8_foo()-functions,-as-well-as-utf8_to_foo(),-etc.">Other is_utf8_foo() functions, as well as utf8_to_foo(), etc.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-Pad-API">New Pad API</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Changes-to-Special-Variables">Changes to Special Variables</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#$$-can-be-assigned-to">$$ can be assigned to</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#$%5EX-converted-to-an-absolute-path-on-FreeBSD,-OS-X-and-Solaris">$^X converted to an absolute path on FreeBSD, OS X and Solaris</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Debugger-Changes">Debugger Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Features-inside-the-debugger">Features inside the debugger</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-option-for-the-debugger&#39;s-t-command">New option for the debugger&#39;s t command</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#enable-and-disable">enable and disable</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Breakpoints-with-file-names">Breakpoints with file names</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-CORE-Namespace">The CORE Namespace</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-CORE::-prefix">The CORE:: prefix</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Subroutines-in-the-CORE-namespace">Subroutines in the CORE namespace</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Other-Changes">Other Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Anonymous-handles">Anonymous handles</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Autoloaded-sort-Subroutines">Autoloaded sort Subroutines</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#continue-no-longer-requires-the-%22switch%22-feature">continue no longer requires the &quot;switch&quot; feature</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#DTrace-probes-for-interpreter-phase-change">DTrace probes for interpreter phase change</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#__FILE__()-Syntax">__FILE__() Syntax</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-%5C$-prototype-accepts-any-scalar-lvalue">The \$ prototype accepts any scalar lvalue</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#_-in-subroutine-prototypes">_ in subroutine prototypes</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Security">Security</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Use-is_utf8_char_buf()-and-not-is_utf8_char()">Use is_utf8_char_buf() and not is_utf8_char()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Malformed-UTF-8-input-could-cause-attempts-to-read-beyond-the-end-of-the-buffer">Malformed UTF-8 input could cause attempts to read beyond the end of the buffer</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#File::Glob::bsd_glob()-memory-error-with-GLOB_ALTDIRFUNC-(CVE-2011-2728).">File::Glob::bsd_glob() memory error with GLOB_ALTDIRFUNC (CVE-2011-2728).</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Privileges-are-now-set-correctly-when-assigning-to-$(">Privileges are now set correctly when assigning to $(</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Deprecations">Deprecations</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Don&#39;t-read-the-Unicode-data-base-files-in-lib/unicore">Don&#39;t read the Unicode data base files in lib/unicore</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#XS-functions-is_utf8_char(),-utf8_to_uvchr()-and-utf8_to_uvuni()">XS functions is_utf8_char(), utf8_to_uvchr() and utf8_to_uvuni()</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Future-Deprecations">Future Deprecations</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Core-Modules">Core Modules</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Platforms-with-no-supporting-programmers">Platforms with no supporting programmers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Other-Future-Deprecations">Other Future Deprecations</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Special-blocks-called-in-void-context">Special blocks called in void context</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-overloading-pragma-and-regexp-objects">The overloading pragma and regexp objects</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Two-XS-typemap-Entries-removed">Two XS typemap Entries removed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Unicode-6.1-has-incompatibilities-with-Unicode-6.0">Unicode 6.1 has incompatibilities with Unicode 6.0</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Borland-compiler">Borland compiler</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Certain-deprecated-Unicode-properties-are-no-longer-supported-by-default">Certain deprecated Unicode properties are no longer supported by default</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Dereferencing-IO-thingies-as-typeglobs">Dereferencing IO thingies as typeglobs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#User-defined-case-changing-operations">User-defined case-changing operations</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#XSUBs-are-now-&#39;static&#39;">XSUBs are now &#39;static&#39;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Weakening-read-only-references">Weakening read-only references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Tying-scalars-that-hold-typeglobs">Tying scalars that hold typeglobs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#IPC::Open3-no-longer-provides-xfork(),-xclose_on_exec()-and-xpipe_anon()">IPC::Open3 no longer provides xfork(), xclose_on_exec() and xpipe_anon()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#$$-no-longer-caches-PID">$$ no longer caches PID</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#$$-and-getppid()-no-longer-emulate-POSIX-semantics-under-LinuxThreads">$$ and getppid() no longer emulate POSIX semantics under LinuxThreads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#$%3C,-$%3E,-$(-and-$)-are-no-longer-cached">$&lt;, $&gt;, $( and $) are no longer cached</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Which-Non-ASCII-characters-get-quoted-by-quotemeta-and-%5CQ-has-changed">Which Non-ASCII characters get quoted by quotemeta and \Q has changed</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Performance-Enhancements">Performance Enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Deprecated-Modules">Deprecated Modules</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-Modules-and-Pragmata">New Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Removed-Modules-and-Pragmata">Removed Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Documentation">Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-Documentation">New Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perldtrace">perldtrace</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlexperiment">perlexperiment</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlootut">perlootut</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlxstypemap">perlxstypemap</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlapi">perlapi</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlfunc">perlfunc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlguts">perlguts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlobj">perlobj</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlop">perlop</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlpragma">perlpragma</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#%22Laundering-and-Detecting-Tainted-Data%22-in-perlsec">&quot;Laundering and Detecting Tainted Data&quot; in perlsec</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perllol">perllol</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlmod">perlmod</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlpodstyle">perlpodstyle</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlre">perlre</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlrun">perlrun</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlsub">perlsub</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perltie">perltie</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#perlvar">perlvar</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Other-Changes1">Other Changes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Removed-Documentation">Removed Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Old-OO-Documentation">Old OO Documentation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Development-Deltas">Development Deltas</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Diagnostics">Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-Diagnostics">New Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-Errors">New Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#New-Warnings">New Warnings</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Removed-Errors">Removed Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#h2ph">h2ph</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#splain">splain</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#zipdetails">zipdetails</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Configuration-and-Compilation">Configuration and Compilation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Platform-Support">Platform Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Platform-Specific-Notes">Platform-Specific Notes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Cygwin">Cygwin</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#HP-UX">HP-UX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#VMS">VMS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#GNU/Hurd">GNU/Hurd</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#OpenVOS">OpenVOS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#SunOS">SunOS</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Internal-Changes">Internal Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Array-and-hash">Array and hash</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#C-API-fixes">C API fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Compile-time-hints">Compile-time hints</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Copy-on-write-scalars">Copy-on-write scalars</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-debugger">The debugger</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Dereferencing-operators">Dereferencing operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Filehandle,-last-accessed">Filehandle, last-accessed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Filetests-and-stat">Filetests and stat</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Formats">Formats</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#given-and-when">given and when</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-glob-operator">The glob operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Lvalue-subroutines">Lvalue subroutines</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Overloading">Overloading</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Prototypes-of-built-in-keywords">Prototypes of built-in keywords</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Regular-expressions">Regular expressions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Smartmatching">Smartmatching</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-sort-operator">The sort operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#The-substr-operator">The substr operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Support-for-embedded-nulls">Support for embedded nulls</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Threading-bugs">Threading bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Tied-variables">Tied variables</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Version-objects-and-vstrings">Version objects and vstrings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Warnings,-redefinition">Warnings, redefinition</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Warnings,-%22Uninitialized%22">Warnings, &quot;Uninitialized&quot;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Weak-references">Weak references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Other-notable-fixes">Other notable fixes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Known-Problems">Known Problems</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Acknowledgements">Acknowledgements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5160delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5160delta.html#NAME">#</a>NAME</h1>

<p>perl5160delta - what is new for perl v5.16.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5160delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.14.0 release and the 5.16.0 release.</p>

<p>If you are upgrading from an earlier release such as 5.12.0, first read <a href="perl5140delta.html">perl5140delta</a>, which describes differences between 5.12.0 and 5.14.0.</p>

<p>Some bug fixes in this release have been backported to later releases of 5.14.x. Those are indicated with the 5.14.x version in parentheses.</p>

<h1 id="Notice"><a class="permalink" href="perl5160delta.html#Notice">#</a>Notice</h1>

<p>With the release of Perl 5.16.0, the 5.12.x series of releases is now out of its support period. There may be future 5.12.x releases, but only in the event of a critical security issue. Users of Perl 5.12 or earlier should consider upgrading to a more recent release of Perl.</p>

<p>This policy is described in greater detail in <a href="perlpolicy.html#MAINTENANCE-AND-SUPPORT">perlpolicy</a>.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl5160delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="use-VERSION"><a class="permalink" href="perl5160delta.html#use-VERSION">#</a><a id="use"></a><code>use <i>VERSION</i></code></h2>

<p>As of this release, version declarations like <code>use v5.16</code> now disable all features before enabling the new feature bundle. This means that the following holds true:</p>

<pre><code>use 5.016;
# only 5.16 features enabled here
use 5.014;
# only 5.14 features enabled here (not 5.16)</code></pre>

<p><code>use v5.12</code> and higher continue to enable strict, but explicit <code>use strict</code> and <code>no strict</code> now override the version declaration, even when they come first:</p>

<pre><code>no strict;
use 5.012;
# no strict here</code></pre>

<p>There is a new &quot;:default&quot; feature bundle that represents the set of features enabled before any version declaration or <code>use feature</code> has been seen. Version declarations below 5.10 now enable the &quot;:default&quot; feature set. This does not actually change the behavior of <code>use v5.8</code>, because features added to the &quot;:default&quot; set are those that were traditionally enabled by default, before they could be turned off.</p>

<p><code>no feature</code> now resets to the default feature set. To disable all features (which is likely to be a pretty special-purpose request, since it presumably won&#39;t match any named set of semantics) you can now write <code>no feature &#39;:all&#39;</code>.</p>

<p><code>$[</code> is now disabled under <code>use v5.16</code>. It is part of the default feature set and can be turned on or off explicitly with <code>use feature &#39;array_base&#39;</code>.</p>

<h2 id="__SUB__"><a class="permalink" href="perl5160delta.html#__SUB__">#</a><a id="SUB__"></a><code>__SUB__</code></h2>

<p>The new <code>__SUB__</code> token, available under the <code>current_sub</code> feature (see <a href="feature.html">feature</a>) or <code>use v5.16</code>, returns a reference to the current subroutine, making it easier to write recursive closures.</p>

<h2 id="New-and-Improved-Built-ins"><a class="permalink" href="perl5160delta.html#New-and-Improved-Built-ins">#</a><a id="New"></a>New and Improved Built-ins</h2>

<h3 id="More-consistent-eval"><a class="permalink" href="perl5160delta.html#More-consistent-eval">#</a><a id="More"></a>More consistent <code>eval</code></h3>

<p>The <code>eval</code> operator sometimes treats a string argument as a sequence of characters and sometimes as a sequence of bytes, depending on the internal encoding. The internal encoding is not supposed to make any difference, but there is code that relies on this inconsistency.</p>

<p>The new <code>unicode_eval</code> and <code>evalbytes</code> features (enabled under <code>use 5.16.0</code>) resolve this. The <code>unicode_eval</code> feature causes <code>eval $string</code> to treat the string always as Unicode. The <code>evalbytes</code> features provides a function, itself called <code>evalbytes</code>, which evaluates its argument always as a string of bytes.</p>

<p>These features also fix oddities with source filters leaking to outer dynamic scopes.</p>

<p>See <a href="feature.html">feature</a> for more detail.</p>

<h3 id="substr-lvalue-revamp"><a class="permalink" href="perl5160delta.html#substr-lvalue-revamp">#</a><a id="substr"></a><code>substr</code> lvalue revamp</h3>

<p>When <code>substr</code> is called in lvalue or potential lvalue context with two or three arguments, a special lvalue scalar is returned that modifies the original string (the first argument) when assigned to.</p>

<p>Previously, the offsets (the second and third arguments) passed to <code>substr</code> would be converted immediately to match the string, negative offsets being translated to positive and offsets beyond the end of the string being truncated.</p>

<p>Now, the offsets are recorded without modification in the special lvalue scalar that is returned, and the original string is not even looked at by <code>substr</code> itself, but only when the returned lvalue is read or modified.</p>

<p>These changes result in an incompatible change:</p>

<p>If the original string changes length after the call to <code>substr</code> but before assignment to its return value, negative offsets will remember their position from the end of the string, affecting code like this:</p>

<pre><code>my $string = &quot;string&quot;;
my $lvalue = \substr $string, -4, 2;
print $$lvalue, &quot;\n&quot;; # prints &quot;ri&quot;
$string = &quot;bailing twine&quot;;
print $$lvalue, &quot;\n&quot;; # prints &quot;wi&quot;; used to print &quot;il&quot;</code></pre>

<p>The same thing happens with an omitted third argument. The returned lvalue will always extend to the end of the string, even if the string becomes longer.</p>

<p>Since this change also allowed many bugs to be fixed (see <a href="perl5160delta.html#The-substr-operator">&quot;The <code>substr</code> operator&quot;</a>), and since the behavior of negative offsets has never been specified, the change was deemed acceptable.</p>

<h3 id="Return-value-of-tied"><a class="permalink" href="perl5160delta.html#Return-value-of-tied">#</a><a id="Return"></a>Return value of <code>tied</code></h3>

<p>The value returned by <code>tied</code> on a tied variable is now the actual scalar that holds the object to which the variable is tied. This lets ties be weakened with <code>Scalar::Util::weaken(tied $tied_variable)</code>.</p>

<h2 id="Unicode-Support"><a class="permalink" href="perl5160delta.html#Unicode-Support">#</a><a id="Unicode"></a>Unicode Support</h2>

<h3 id="Supports-(almost)-Unicode-6.1"><a class="permalink" href="perl5160delta.html#Supports-(almost)-Unicode-6.1">#</a><a id="Supports"></a><a id="Supports-almost-Unicode-6.1"></a>Supports (<i>almost</i>) Unicode 6.1</h3>

<p>Besides the addition of whole new scripts, and new characters in existing scripts, this new version of Unicode, as always, makes some changes to existing characters. One change that may trip up some applications is that the General Category of two characters in the Latin-1 range, PILCROW SIGN and SECTION SIGN, has been changed from Other_Symbol to Other_Punctuation. The same change has been made for a character in each of Tibetan, Ethiopic, and Aegean. The code points U+3248..U+324F (CIRCLED NUMBER TEN ON BLACK SQUARE through CIRCLED NUMBER EIGHTY ON BLACK SQUARE) have had their General Category changed from Other_Symbol to Other_Numeric. The Line Break property has changes for Hebrew and Japanese; and because of other changes in 6.1, the Perl regular expression construct <code>\X</code> now works differently for some characters in Thai and Lao.</p>

<p>New aliases (synonyms) have been defined for many property values; these, along with the previously existing ones, are all cross-indexed in <a href="perluniprops.html">perluniprops</a>.</p>

<p>The return value of <code>charnames::viacode()</code> is affected by other changes:</p>

<pre><code class="plaintext">Code point      Old Name             New Name
  U+000A    LINE FEED (LF)        LINE FEED
  U+000C    FORM FEED (FF)        FORM FEED
  U+000D    CARRIAGE RETURN (CR)  CARRIAGE RETURN
  U+0085    NEXT LINE (NEL)       NEXT LINE
  U+008E    SINGLE-SHIFT 2        SINGLE-SHIFT-2
  U+008F    SINGLE-SHIFT 3        SINGLE-SHIFT-3
  U+0091    PRIVATE USE 1         PRIVATE USE-1
  U+0092    PRIVATE USE 2         PRIVATE USE-2
  U+2118    SCRIPT CAPITAL P      WEIERSTRASS ELLIPTIC FUNCTION</code></pre>

<p>Perl will accept any of these names as input, but <code>charnames::viacode()</code> now returns the new name of each pair. The change for U+2118 is considered by Unicode to be a correction, that is the original name was a mistake (but again, it will remain forever valid to use it to refer to U+2118). But most of these changes are the fallout of the mistake Unicode 6.0 made in naming a character used in Japanese cell phones to be &quot;BELL&quot;, which conflicts with the longstanding industry use of (and Unicode&#39;s recommendation to use) that name to mean the ASCII control character at U+0007. Therefore, that name has been deprecated in Perl since v5.14, and any use of it will raise a warning message (unless turned off). The name &quot;ALERT&quot; is now the preferred name for this code point, with &quot;BEL&quot; an acceptable short form. The name for the new cell phone character, at code point U+1F514, remains undefined in this version of Perl (hence we don&#39;t implement quite all of Unicode 6.1), but starting in v5.18, BELL will mean this character, and not U+0007.</p>

<p>Unicode has taken steps to make sure that this sort of mistake does not happen again. The Standard now includes all generally accepted names and abbreviations for control characters, whereas previously it didn&#39;t (though there were recommended names for most of them, which Perl used). This means that most of those recommended names are now officially in the Standard. Unicode did not recommend names for the four code points listed above between U+008E and U+008F, and in standardizing them Unicode subtly changed the names that Perl had previously given them, by replacing the final blank in each name by a hyphen. Unicode also officially accepts names that Perl had deprecated, such as FILE SEPARATOR. Now the only deprecated name is BELL. Finally, Perl now uses the new official names instead of the old (now considered obsolete) names for the first four code points in the list above (the ones which have the parentheses in them).</p>

<p>Now that the names have been placed in the Unicode standard, these kinds of changes should not happen again, though corrections, such as to U+2118, are still possible.</p>

<p>Unicode also added some name abbreviations, which Perl now accepts: SP for SPACE; TAB for CHARACTER TABULATION; NEW LINE, END OF LINE, NL, and EOL for LINE FEED; LOCKING-SHIFT ONE for SHIFT OUT; LOCKING-SHIFT ZERO for SHIFT IN; and ZWNBSP for ZERO WIDTH NO-BREAK SPACE.</p>

<p>More details on this version of Unicode are provided in <a href="http://www.unicode.org/versions/Unicode6.1.0/">http://www.unicode.org/versions/Unicode6.1.0/</a>.</p>

<h3 id="use-charnames-is-no-longer-needed-for-\N{name}"><a class="permalink" href="perl5160delta.html#use-charnames-is-no-longer-needed-for-%5CN%7Bname%7D">#</a><a id="use1"></a><a id="use-charnames-is-no-longer-needed-for-N-name"></a><code>use charnames</code> is no longer needed for <code>\N{<i>name</i>}</code></h3>

<p>When <code>\N{<i>name</i>}</code> is encountered, the <code>charnames</code> module is now automatically loaded when needed as if the <code>:full</code> and <code>:short</code> options had been specified. See <a href="charnames.html">charnames</a> for more information.</p>

<h3 id="\N{...}-can-now-have-Unicode-loose-name-matching"><a class="permalink" href="perl5160delta.html#%5CN%7B...%7D-can-now-have-Unicode-loose-name-matching">#</a><a id="N-...-can-now-have-Unicode-loose-name-matching"></a><code>\N{...}</code> can now have Unicode loose name matching</h3>

<p>This is described in the <code>charnames</code> item in <a href="perl5160delta.html#Updated-Modules-and-Pragmata">&quot;Updated Modules and Pragmata&quot;</a> below.</p>

<h3 id="Unicode-Symbol-Names"><a class="permalink" href="perl5160delta.html#Unicode-Symbol-Names">#</a><a id="Unicode1"></a>Unicode Symbol Names</h3>

<p>Perl now has proper support for Unicode in symbol names. It used to be that <code>*{$foo}</code> would ignore the internal UTF8 flag and use the bytes of the underlying representation to look up the symbol. That meant that <code>*{&quot;\x{100}&quot;}</code> and <code>*{&quot;\xc4\x80&quot;}</code> would return the same thing. All these parts of Perl have been fixed to account for Unicode:</p>

<ul>

<li><p>Method names (including those passed to <code>use overload</code>)</p>

</li>
<li><p>Typeglob names (including names of variables, subroutines, and filehandles)</p>

</li>
<li><p>Package names</p>

</li>
<li><p><code>goto</code></p>

</li>
<li><p>Symbolic dereferencing</p>

</li>
<li><p>Second argument to <code>bless()</code> and <code>tie()</code></p>

</li>
<li><p>Return value of <code>ref()</code></p>

</li>
<li><p>Subroutine prototypes</p>

</li>
<li><p>Attributes</p>

</li>
<li><p>Various warnings and error messages that mention variable names or values, methods, etc.</p>

</li>
</ul>

<p>In addition, a parsing bug has been fixed that prevented <code>*{é}</code> from implicitly quoting the name, but instead interpreted it as <code>*{+é}</code>, which would cause a strict violation.</p>

<p><code>*{&quot;*a::b&quot;}</code> automatically strips off the * if it is followed by an ASCII letter. That has been extended to all Unicode identifier characters.</p>

<p>One-character non-ASCII non-punctuation variables (like <code>$é</code>) are now subject to &quot;Used only once&quot; warnings. They used to be exempt, as they were treated as punctuation variables.</p>

<p>Also, single-character Unicode punctuation variables (like <code>$‰</code>) are now supported [perl #69032].</p>

<h3 id="Improved-ability-to-mix-locales-and-Unicode,-including-UTF-8-locales"><a class="permalink" href="perl5160delta.html#Improved-ability-to-mix-locales-and-Unicode,-including-UTF-8-locales">#</a><a id="Improved"></a><a id="Improved-ability-to-mix-locales-and-Unicode-including-UTF-8-locales"></a>Improved ability to mix locales and Unicode, including UTF-8 locales</h3>

<p>An optional parameter has been added to <code>use locale</code></p>

<pre><code>use locale &#39;:not_characters&#39;;</code></pre>

<p>which tells Perl to use all but the <code>LC_CTYPE</code> and <code>LC_COLLATE</code> portions of the current locale. Instead, the character set is assumed to be Unicode. This lets locales and Unicode be seamlessly mixed, including the increasingly frequent UTF-8 locales. When using this hybrid form of locales, the <code>:locale</code> layer to the <a href="open.html">open</a> pragma can be used to interface with the file system, and there are CPAN modules available for ARGV and environment variable conversions.</p>

<p>Full details are in <a href="perllocale.html">perllocale</a>.</p>

<h3 id="New-function-fc-and-corresponding-escape-sequence-\F-for-Unicode-foldcase"><a class="permalink" href="perl5160delta.html#New-function-fc-and-corresponding-escape-sequence-%5CF-for-Unicode-foldcase">#</a><a id="New1"></a><a id="New-function-fc-and-corresponding-escape-sequence-F-for-Unicode-foldcase"></a>New function <code>fc</code> and corresponding escape sequence <code>\F</code> for Unicode foldcase</h3>

<p>Unicode foldcase is an extension to lowercase that gives better results when comparing two strings case-insensitively. It has long been used internally in regular expression <code>/i</code> matching. Now it is available explicitly through the new <code>fc</code> function call (enabled by <span style="white-space: nowrap;"><code>&quot;use feature &#39;fc&#39;&quot;</code></span>, or <code>use v5.16</code>, or explicitly callable via <code>CORE::fc</code>) or through the new <code>\F</code> sequence in double-quotish strings.</p>

<p>Full details are in <a href="perlfunc.html#fc">&quot;fc&quot; in perlfunc</a>.</p>

<h3 id="The-Unicode-Script_Extensions-property-is-now-supported."><a class="permalink" href="perl5160delta.html#The-Unicode-Script_Extensions-property-is-now-supported.">#</a><a id="The"></a><a id="The-Unicode-Script_Extensions-property-is-now-supported"></a>The Unicode <code>Script_Extensions</code> property is now supported.</h3>

<p>New in Unicode 6.0, this is an improved <code>Script</code> property. Details are in <a href="perlunicode.html#Scripts">&quot;Scripts&quot; in perlunicode</a>.</p>

<h2 id="XS-Changes"><a class="permalink" href="perl5160delta.html#XS-Changes">#</a><a id="XS"></a>XS Changes</h2>

<h3 id="Improved-typemaps-for-Some-Builtin-Types"><a class="permalink" href="perl5160delta.html#Improved-typemaps-for-Some-Builtin-Types">#</a><a id="Improved1"></a>Improved typemaps for Some Builtin Types</h3>

<p>Most XS authors will know there is a longstanding bug in the OUTPUT typemap for T_AVREF (<code>AV*</code>), T_HVREF (<code>HV*</code>), T_CVREF (<code>CV*</code>), and T_SVREF (<code>SVREF</code> or <code>\$foo</code>) that requires manually decrementing the reference count of the return value instead of the typemap taking care of this. For backwards-compatibility, this cannot be changed in the default typemaps. But we now provide additional typemaps <code>T_AVREF_REFCOUNT_FIXED</code>, etc. that do not exhibit this bug. Using them in your extension is as simple as having one line in your <code>TYPEMAP</code> section:</p>

<pre><code class="plaintext">HV*	T_HVREF_REFCOUNT_FIXED</code></pre>

<h3 id="is_utf8_char()"><a class="permalink" href="perl5160delta.html#is_utf8_char()">#</a><a id="is_utf8_char"></a><code>is_utf8_char()</code></h3>

<p>The XS-callable function <code>is_utf8_char()</code>, when presented with malformed UTF-8 input, can read up to 12 bytes beyond the end of the string. This cannot be fixed without changing its API, and so its use is now deprecated. Use <code>is_utf8_char_buf()</code> (described just below) instead.</p>

<h3 id="Added-is_utf8_char_buf()"><a class="permalink" href="perl5160delta.html#Added-is_utf8_char_buf()">#</a><a id="Added"></a><a id="Added-is_utf8_char_buf"></a>Added <code>is_utf8_char_buf()</code></h3>

<p>This function is designed to replace the deprecated <a href="perl5160delta.html#is_utf8_char%28%29">&quot;is_utf8_char()&quot;</a> function. It includes an extra parameter to make sure it doesn&#39;t read past the end of the input buffer.</p>

<h3 id="Other-is_utf8_foo()-functions,-as-well-as-utf8_to_foo(),-etc."><a class="permalink" href="perl5160delta.html#Other-is_utf8_foo()-functions,-as-well-as-utf8_to_foo(),-etc.">#</a><a id="Other"></a><a id="Other-is_utf8_foo-functions-as-well-as-utf8_to_foo-etc"></a>Other <code>is_utf8_foo()</code> functions, as well as <code>utf8_to_foo()</code>, etc.</h3>

<p>Most other XS-callable functions that take UTF-8 encoded input implicitly assume that the UTF-8 is valid (not malformed) with respect to buffer length. Do not do things such as change a character&#39;s case or see if it is alphanumeric without first being sure that it is valid UTF-8. This can be safely done for a whole string by using one of the functions <code>is_utf8_string()</code>, <code>is_utf8_string_loc()</code>, and <code>is_utf8_string_loclen()</code>.</p>

<h3 id="New-Pad-API"><a class="permalink" href="perl5160delta.html#New-Pad-API">#</a><a id="New2"></a>New Pad API</h3>

<p>Many new functions have been added to the API for manipulating lexical pads. See <a href="perlapi.html#Pad-Data-Structures">&quot;Pad Data Structures&quot; in perlapi</a> for more information.</p>

<h2 id="Changes-to-Special-Variables"><a class="permalink" href="perl5160delta.html#Changes-to-Special-Variables">#</a><a id="Changes"></a>Changes to Special Variables</h2>

<h3 id="$$-can-be-assigned-to"><a class="permalink" href="perl5160delta.html#$$-can-be-assigned-to">#</a><a id="can-be-assigned-to"></a><code>$$</code> can be assigned to</h3>

<p><code>$$</code> was made read-only in Perl 5.8.0. But only sometimes: <code>local $$</code> would make it writable again. Some CPAN modules were using <code>local $$</code> or XS code to bypass the read-only check, so there is no reason to keep <code>$$</code> read-only. (This change also allowed a bug to be fixed while maintaining backward compatibility.)</p>

<h3 id="$^X-converted-to-an-absolute-path-on-FreeBSD,-OS-X-and-Solaris"><a class="permalink" href="perl5160delta.html#$%5EX-converted-to-an-absolute-path-on-FreeBSD,-OS-X-and-Solaris">#</a><a id="X-converted-to-an-absolute-path-on-FreeBSD-OS-X-and-Solaris"></a><code>$^X</code> converted to an absolute path on FreeBSD, OS X and Solaris</h3>

<p><code>$^X</code> is now converted to an absolute path on OS X, FreeBSD (without needing <i>/proc</i> mounted) and Solaris 10 and 11. This augments the previous approach of using <i>/proc</i> on Linux, FreeBSD, and NetBSD (in all cases, where mounted).</p>

<p>This makes relocatable perl installations more useful on these platforms. (See &quot;Relocatable @INC&quot; in <i>INSTALL</i>)</p>

<h2 id="Debugger-Changes"><a class="permalink" href="perl5160delta.html#Debugger-Changes">#</a><a id="Debugger"></a>Debugger Changes</h2>

<h3 id="Features-inside-the-debugger"><a class="permalink" href="perl5160delta.html#Features-inside-the-debugger">#</a><a id="Features"></a>Features inside the debugger</h3>

<p>The current Perl&#39;s <a href="feature.html">feature</a> bundle is now enabled for commands entered in the interactive debugger.</p>

<h3 id="New-option-for-the-debugger&#39;s-t-command"><a class="permalink" href="perl5160delta.html#New-option-for-the-debugger&#39;s-t-command">#</a><a id="New3"></a><a id="New-option-for-the-debuggers-t-command"></a>New option for the debugger&#39;s <b>t</b> command</h3>

<p>The <b>t</b> command in the debugger, which toggles tracing mode, now accepts a numeric argument that determines how many levels of subroutine calls to trace.</p>

<h3 id="enable-and-disable"><a class="permalink" href="perl5160delta.html#enable-and-disable">#</a><a id="enable"></a><code>enable</code> and <code>disable</code></h3>

<p>The debugger now has <code>disable</code> and <code>enable</code> commands for disabling existing breakpoints and re-enabling them. See <a href="perldebug.html">perldebug</a>.</p>

<h3 id="Breakpoints-with-file-names"><a class="permalink" href="perl5160delta.html#Breakpoints-with-file-names">#</a><a id="Breakpoints"></a>Breakpoints with file names</h3>

<p>The debugger&#39;s &quot;b&quot; command for setting breakpoints now lets a line number be prefixed with a file name. See <a href="perldebug.html#b-%5Bfile%5D%3A%5Bline%5D-%5Bcondition%5D">&quot;b [file]:[line] [condition]&quot; in perldebug</a>.</p>

<h2 id="The-CORE-Namespace"><a class="permalink" href="perl5160delta.html#The-CORE-Namespace">#</a><a id="The1"></a>The <code>CORE</code> Namespace</h2>

<h3 id="The-CORE::-prefix"><a class="permalink" href="perl5160delta.html#The-CORE::-prefix">#</a><a id="The2"></a>The <code>CORE::</code> prefix</h3>

<p>The <code>CORE::</code> prefix can now be used on keywords enabled by <a href="feature.html">feature.pm</a>, even outside the scope of <code>use feature</code>.</p>

<h3 id="Subroutines-in-the-CORE-namespace"><a class="permalink" href="perl5160delta.html#Subroutines-in-the-CORE-namespace">#</a><a id="Subroutines"></a>Subroutines in the <code>CORE</code> namespace</h3>

<p>Many Perl keywords are now available as subroutines in the CORE namespace. This lets them be aliased:</p>

<pre><code>BEGIN { *entangle = \&amp;CORE::tie }
entangle $variable, $package, @args;</code></pre>

<p>And for prototypes to be bypassed:</p>

<pre><code>    sub mytie(\[%$*@]$@) {
	my ($ref, $pack, @args) = @_;
	... do something ...
	goto &amp;CORE::tie;
    }</code></pre>

<p>Some of these cannot be called through references or via <code>&amp;foo</code> syntax, but must be called as barewords.</p>

<p>See <a href="CORE.html">CORE</a> for details.</p>

<h2 id="Other-Changes"><a class="permalink" href="perl5160delta.html#Other-Changes">#</a><a id="Other1"></a>Other Changes</h2>

<h3 id="Anonymous-handles"><a class="permalink" href="perl5160delta.html#Anonymous-handles">#</a><a id="Anonymous"></a>Anonymous handles</h3>

<p>Automatically generated file handles are now named __ANONIO__ when the variable name cannot be determined, rather than $__ANONIO__.</p>

<h3 id="Autoloaded-sort-Subroutines"><a class="permalink" href="perl5160delta.html#Autoloaded-sort-Subroutines">#</a><a id="Autoloaded"></a>Autoloaded sort Subroutines</h3>

<p>Custom sort subroutines can now be autoloaded [perl #30661]:</p>

<pre><code>sub AUTOLOAD { ... }
@sorted = sort foo @list; # uses AUTOLOAD</code></pre>

<h3 id="continue-no-longer-requires-the-&quot;switch&quot;-feature"><a class="permalink" href="perl5160delta.html#continue-no-longer-requires-the-%22switch%22-feature">#</a><a id="continue"></a><a id="continue-no-longer-requires-the-switch-feature"></a><code>continue</code> no longer requires the &quot;switch&quot; feature</h3>

<p>The <code>continue</code> keyword has two meanings. It can introduce a <code>continue</code> block after a loop, or it can exit the current <code>when</code> block. Up to now, the latter meaning was valid only with the &quot;switch&quot; feature enabled, and was a syntax error otherwise. Since the main purpose of feature.pm is to avoid conflicts with user-defined subroutines, there is no reason for <code>continue</code> to depend on it.</p>

<h3 id="DTrace-probes-for-interpreter-phase-change"><a class="permalink" href="perl5160delta.html#DTrace-probes-for-interpreter-phase-change">#</a><a id="DTrace"></a>DTrace probes for interpreter phase change</h3>

<p>The <code>phase-change</code> probes will fire when the interpreter&#39;s phase changes, which tracks the <code>${^GLOBAL_PHASE}</code> variable. <code>arg0</code> is the new phase name; <code>arg1</code> is the old one. This is useful for limiting your instrumentation to one or more of: compile time, run time, or destruct time.</p>

<h3 id="__FILE__()-Syntax"><a class="permalink" href="perl5160delta.html#__FILE__()-Syntax">#</a><a id="__FILE__"></a><a id="FILE__-Syntax"></a><code>__FILE__()</code> Syntax</h3>

<p>The <code>__FILE__</code>, <code>__LINE__</code> and <code>__PACKAGE__</code> tokens can now be written with an empty pair of parentheses after them. This makes them parse the same way as <code>time</code>, <code>fork</code> and other built-in functions.</p>

<h3 id="The-\$-prototype-accepts-any-scalar-lvalue"><a class="permalink" href="perl5160delta.html#The-%5C$-prototype-accepts-any-scalar-lvalue">#</a><a id="The3"></a><a id="The-prototype-accepts-any-scalar-lvalue"></a>The <code>\$</code> prototype accepts any scalar lvalue</h3>

<p>The <code>\$</code> and <code>\[$]</code> subroutine prototypes now accept any scalar lvalue argument. Previously they accepted only scalars beginning with <code>$</code> and hash and array elements. This change makes them consistent with the way the built-in <code>read</code> and <code>recv</code> functions (among others) parse their arguments. This means that one can override the built-in functions with custom subroutines that parse their arguments the same way.</p>

<h3 id="_-in-subroutine-prototypes"><a class="permalink" href="perl5160delta.html#_-in-subroutine-prototypes">#</a><a id="_"></a><a id="in-subroutine-prototypes"></a><code>_</code> in subroutine prototypes</h3>

<p>The <code>_</code> character in subroutine prototypes is now allowed before <code>@</code> or <code>%</code>.</p>

<h1 id="Security"><a class="permalink" href="perl5160delta.html#Security">#</a>Security</h1>

<h2 id="Use-is_utf8_char_buf()-and-not-is_utf8_char()"><a class="permalink" href="perl5160delta.html#Use-is_utf8_char_buf()-and-not-is_utf8_char()">#</a><a id="Use"></a><a id="Use-is_utf8_char_buf-and-not-is_utf8_char"></a>Use <code>is_utf8_char_buf()</code> and not <code>is_utf8_char()</code></h2>

<p>The latter function is now deprecated because its API is insufficient to guarantee that it doesn&#39;t read (up to 12 bytes in the worst case) beyond the end of its input string. See <a href="perl5160delta.html#Added-is_utf8_char_buf%28%29">is_utf8_char_buf()</a>.</p>

<h2 id="Malformed-UTF-8-input-could-cause-attempts-to-read-beyond-the-end-of-the-buffer"><a class="permalink" href="perl5160delta.html#Malformed-UTF-8-input-could-cause-attempts-to-read-beyond-the-end-of-the-buffer">#</a><a id="Malformed"></a>Malformed UTF-8 input could cause attempts to read beyond the end of the buffer</h2>

<p>Two new XS-accessible functions, <code>utf8_to_uvchr_buf()</code> and <code>utf8_to_uvuni_buf()</code> are now available to prevent this, and the Perl core has been converted to use them. See <a href="perl5160delta.html#Internal-Changes">&quot;Internal Changes&quot;</a>.</p>

<h2 id="File::Glob::bsd_glob()-memory-error-with-GLOB_ALTDIRFUNC-(CVE-2011-2728)."><a class="permalink" href="perl5160delta.html#File::Glob::bsd_glob()-memory-error-with-GLOB_ALTDIRFUNC-(CVE-2011-2728).">#</a><a id="File"></a><a id="File::Glob::bsd_glob-memory-error-with-GLOB_ALTDIRFUNC-CVE-2011-2728"></a><code>File::Glob::bsd_glob()</code> memory error with GLOB_ALTDIRFUNC (CVE-2011-2728).</h2>

<p>Calling <code>File::Glob::bsd_glob</code> with the unsupported flag GLOB_ALTDIRFUNC would cause an access violation / segfault. A Perl program that accepts a flags value from an external source could expose itself to denial of service or arbitrary code execution attacks. There are no known exploits in the wild. The problem has been corrected by explicitly disabling all unsupported flags and setting unused function pointers to null. Bug reported by Clément Lecigne. (5.14.2)</p>

<h2 id="Privileges-are-now-set-correctly-when-assigning-to-$("><a class="permalink" href="perl5160delta.html#Privileges-are-now-set-correctly-when-assigning-to-$(">#</a><a id="Privileges"></a><a id="Privileges-are-now-set-correctly-when-assigning-to"></a>Privileges are now set correctly when assigning to <code>$(</code></h2>

<p>A hypothetical bug (probably unexploitable in practice) because the incorrect setting of the effective group ID while setting <code>$(</code> has been fixed. The bug would have affected only systems that have <code>setresgid()</code> but not <code>setregid()</code>, but no such systems are known to exist.</p>

<h1 id="Deprecations"><a class="permalink" href="perl5160delta.html#Deprecations">#</a>Deprecations</h1>

<h2 id="Don&#39;t-read-the-Unicode-data-base-files-in-lib/unicore"><a class="permalink" href="perl5160delta.html#Don&#39;t-read-the-Unicode-data-base-files-in-lib/unicore">#</a><a id="Don"></a><a id="Dont-read-the-Unicode-data-base-files-in-lib-unicore"></a>Don&#39;t read the Unicode data base files in <i>lib/unicore</i></h2>

<p>It is now deprecated to directly read the Unicode data base files. These are stored in the <i>lib/unicore</i> directory. Instead, you should use the new functions in <a href="./Unicode::UCD.html">Unicode::UCD</a>. These provide a stable API, and give complete information.</p>

<p>Perl may at some point in the future change or remove these files. The file which applications were most likely to have used is <i>lib/unicore/ToDigit.pl</i>. <a href="./Unicode::UCD.html#prop_invmap%28%29">&quot;prop_invmap()&quot; in Unicode::UCD</a> can be used to get at its data instead.</p>

<h2 id="XS-functions-is_utf8_char(),-utf8_to_uvchr()-and-utf8_to_uvuni()"><a class="permalink" href="perl5160delta.html#XS-functions-is_utf8_char(),-utf8_to_uvchr()-and-utf8_to_uvuni()">#</a><a id="XS1"></a><a id="XS-functions-is_utf8_char-utf8_to_uvchr-and-utf8_to_uvuni"></a>XS functions <code>is_utf8_char()</code>, <code>utf8_to_uvchr()</code> and <code>utf8_to_uvuni()</code></h2>

<p>This function is deprecated because it could read beyond the end of the input string. Use the new <a href="perl5160delta.html#Added-is_utf8_char_buf%28%29">is_utf8_char_buf()</a>, <code>utf8_to_uvchr_buf()</code> and <code>utf8_to_uvuni_buf()</code> instead.</p>

<h1 id="Future-Deprecations"><a class="permalink" href="perl5160delta.html#Future-Deprecations">#</a><a id="Future"></a>Future Deprecations</h1>

<p>This section serves as a notice of features that are <i>likely</i> to be removed or <a href="perlpolicy.html#deprecated">deprecated</a> in the next release of perl (5.18.0). If your code depends on these features, you should contact the Perl 5 Porters via the <a href="http://lists.perl.org/list/perl5-porters.html">mailing list</a> or <a href="perlbug.html">perlbug</a> to explain your use case and inform the deprecation process.</p>

<h2 id="Core-Modules"><a class="permalink" href="perl5160delta.html#Core-Modules">#</a><a id="Core1"></a>Core Modules</h2>

<p>These modules may be marked as deprecated <i>from the core</i>. This only means that they will no longer be installed by default with the core distribution, but will remain available on the CPAN.</p>

<ul>

<li><p>CPANPLUS</p>

</li>
<li><p>Filter::Simple</p>

</li>
<li><p>PerlIO::mmap</p>

</li>
<li><p>Pod::LaTeX</p>

</li>
<li><p>Pod::Parser</p>

</li>
<li><p>SelfLoader</p>

</li>
<li><p>Text::Soundex</p>

</li>
<li><p>Thread.pm</p>

</li>
</ul>

<h2 id="Platforms-with-no-supporting-programmers"><a class="permalink" href="perl5160delta.html#Platforms-with-no-supporting-programmers">#</a><a id="Platforms"></a>Platforms with no supporting programmers</h2>

<p>These platforms will probably have their special build support removed during the 5.17.0 development series.</p>

<ul>

<li><p>BeOS</p>

</li>
<li><p>djgpp</p>

</li>
<li><p>dgux</p>

</li>
<li><p>EPOC</p>

</li>
<li><p>MPE/iX</p>

</li>
<li><p>Rhapsody</p>

</li>
<li><p>UTS</p>

</li>
<li><p>VM/ESA</p>

</li>
</ul>

<h2 id="Other-Future-Deprecations"><a class="permalink" href="perl5160delta.html#Other-Future-Deprecations">#</a><a id="Other2"></a>Other Future Deprecations</h2>

<ul>

<li><p>Swapping of $&lt; and $&gt;</p>

<p>For more information about this future deprecation, see <a href="https://github.com/Perl/perl5/issues/11547">the relevant RT ticket</a>.</p>

</li>
<li><p>sfio, stdio</p>

<p>Perl supports being built without PerlIO proper, using a stdio or sfio wrapper instead. A perl build like this will not support IO layers and thus Unicode IO, making it rather handicapped.</p>

<p>PerlIO supports a <code>stdio</code> layer if stdio use is desired, and similarly a sfio layer could be produced.</p>

</li>
<li><p>Unescaped literal <code>&quot;{&quot;</code> in regular expressions.</p>

<p>Starting with v5.20, it is planned to require a literal <code>&quot;{&quot;</code> to be escaped, for example by preceding it with a backslash. In v5.18, a deprecated warning message will be emitted for all such uses. This affects only patterns that are to match a literal <code>&quot;{&quot;</code>. Other uses of this character, such as part of a quantifier or sequence as in those below, are completely unaffected:</p>

<pre><code class="plaintext">/foo{3,5}/
/\p{Alphabetic}/
/\N{DIGIT ZERO}</code></pre>

<p>Removing this will permit extensions to Perl&#39;s pattern syntax and better error checking for existing syntax. See <a href="perlre.html#Quantifiers">&quot;Quantifiers&quot; in perlre</a> for an example.</p>

</li>
<li><p>Revamping <code>&quot;\Q&quot;</code> semantics in double-quotish strings when combined with other escapes.</p>

<p>There are several bugs and inconsistencies involving combinations of <code>\Q</code> and escapes like <code>\x</code>, <code>\L</code>, etc., within a <code>\Q...\E</code> pair. These need to be fixed, and doing so will necessarily change current behavior. The changes have not yet been settled.</p>

</li>
</ul>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl5160delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="Special-blocks-called-in-void-context"><a class="permalink" href="perl5160delta.html#Special-blocks-called-in-void-context">#</a><a id="Special"></a>Special blocks called in void context</h2>

<p>Special blocks (<code>BEGIN</code>, <code>CHECK</code>, <code>INIT</code>, <code>UNITCHECK</code>, <code>END</code>) are now called in void context. This avoids wasteful copying of the result of the last statement [perl #108794].</p>

<h2 id="The-overloading-pragma-and-regexp-objects"><a class="permalink" href="perl5160delta.html#The-overloading-pragma-and-regexp-objects">#</a><a id="The4"></a>The <code>overloading</code> pragma and regexp objects</h2>

<p>With <code>no overloading</code>, regular expression objects returned by <code>qr//</code> are now stringified as &quot;Regexp=REGEXP(0xbe600d)&quot; instead of the regular expression itself [perl #108780].</p>

<h2 id="Two-XS-typemap-Entries-removed"><a class="permalink" href="perl5160delta.html#Two-XS-typemap-Entries-removed">#</a><a id="Two"></a>Two XS typemap Entries removed</h2>

<p>Two presumably unused XS typemap entries have been removed from the core typemap: T_DATAUNIT and T_CALLBACK. If you are, against all odds, a user of these, please see the instructions on how to restore them in <a href="perlxstypemap.html">perlxstypemap</a>.</p>

<h2 id="Unicode-6.1-has-incompatibilities-with-Unicode-6.0"><a class="permalink" href="perl5160delta.html#Unicode-6.1-has-incompatibilities-with-Unicode-6.0">#</a><a id="Unicode2"></a>Unicode 6.1 has incompatibilities with Unicode 6.0</h2>

<p>These are detailed in <a href="perl5160delta.html#Supports-%28almost%29-Unicode-6.1">&quot;Supports (almost) Unicode 6.1&quot;</a> above. You can compile this version of Perl to use Unicode 6.0. See <a href="perlunicode.html#Hacking-Perl-to-work-on-earlier-Unicode-versions-%28for-very-serious-hackers-only%29">&quot;Hacking Perl to work on earlier Unicode versions (for very serious hackers only)&quot; in perlunicode</a>.</p>

<h2 id="Borland-compiler"><a class="permalink" href="perl5160delta.html#Borland-compiler">#</a><a id="Borland"></a>Borland compiler</h2>

<p>All support for the Borland compiler has been dropped. The code had not worked for a long time anyway.</p>

<h2 id="Certain-deprecated-Unicode-properties-are-no-longer-supported-by-default"><a class="permalink" href="perl5160delta.html#Certain-deprecated-Unicode-properties-are-no-longer-supported-by-default">#</a><a id="Certain"></a>Certain deprecated Unicode properties are no longer supported by default</h2>

<p>Perl should never have exposed certain Unicode properties that are used by Unicode internally and not meant to be publicly available. Use of these has generated deprecated warning messages since Perl 5.12. The removed properties are Other_Alphabetic, Other_Default_Ignorable_Code_Point, Other_Grapheme_Extend, Other_ID_Continue, Other_ID_Start, Other_Lowercase, Other_Math, and Other_Uppercase.</p>

<p>Perl may be recompiled to include any or all of them; instructions are given in <a href="perluniprops.html#Unicode-character-properties-that-are-NOT-accepted-by-Perl">&quot;Unicode character properties that are NOT accepted by Perl&quot; in perluniprops</a>.</p>

<h2 id="Dereferencing-IO-thingies-as-typeglobs"><a class="permalink" href="perl5160delta.html#Dereferencing-IO-thingies-as-typeglobs">#</a><a id="Dereferencing"></a>Dereferencing IO thingies as typeglobs</h2>

<p>The <code>*{...}</code> operator, when passed a reference to an IO thingy (as in <code>*{*STDIN{IO}}</code>), creates a new typeglob containing just that IO object. Previously, it would stringify as an empty string, but some operators would treat it as undefined, producing an &quot;uninitialized&quot; warning. Now it stringifies as __ANONIO__ [perl #96326].</p>

<h2 id="User-defined-case-changing-operations"><a class="permalink" href="perl5160delta.html#User-defined-case-changing-operations">#</a><a id="User"></a>User-defined case-changing operations</h2>

<p>This feature was deprecated in Perl 5.14, and has now been removed. The CPAN module <a href="./Unicode::Casing.html">Unicode::Casing</a> provides better functionality without the drawbacks that this feature had, as are detailed in the 5.14 documentation: <a href="http://perldoc.perl.org/5.14.0/perlunicode.html#User-Defined-Case-Mappings-%28for-serious-hackers-only%29">http://perldoc.perl.org/5.14.0/perlunicode.html#User-Defined-Case-Mappings-%28for-serious-hackers-only%29</a></p>

<h2 id="XSUBs-are-now-&#39;static&#39;"><a class="permalink" href="perl5160delta.html#XSUBs-are-now-&#39;static&#39;">#</a><a id="XSUBs"></a><a id="XSUBs-are-now-static"></a>XSUBs are now &#39;static&#39;</h2>

<p>XSUB C functions are now &#39;static&#39;, that is, they are not visible from outside the compilation unit. Users can use the new <code>XS_EXTERNAL(name)</code> and <code>XS_INTERNAL(name)</code> macros to pick the desired linking behavior. The ordinary <code>XS(name)</code> declaration for XSUBs will continue to declare non-&#39;static&#39; XSUBs for compatibility, but the XS compiler, <a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a> (<code>xsubpp</code>) will emit &#39;static&#39; XSUBs by default. <a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a>&#39;s behavior can be reconfigured from XS using the <code>EXPORT_XSUB_SYMBOLS</code> keyword. See <a href="perlxs.html">perlxs</a> for details.</p>

<h2 id="Weakening-read-only-references"><a class="permalink" href="perl5160delta.html#Weakening-read-only-references">#</a><a id="Weakening"></a>Weakening read-only references</h2>

<p>Weakening read-only references is no longer permitted. It should never have worked anyway, and could sometimes result in crashes.</p>

<h2 id="Tying-scalars-that-hold-typeglobs"><a class="permalink" href="perl5160delta.html#Tying-scalars-that-hold-typeglobs">#</a><a id="Tying"></a>Tying scalars that hold typeglobs</h2>

<p>Attempting to tie a scalar after a typeglob was assigned to it would instead tie the handle in the typeglob&#39;s IO slot. This meant that it was impossible to tie the scalar itself. Similar problems affected <code>tied</code> and <code>untie</code>: <code>tied $scalar</code> would return false on a tied scalar if the last thing returned was a typeglob, and <code>untie $scalar</code> on such a tied scalar would do nothing.</p>

<p>We fixed this problem before Perl 5.14.0, but it caused problems with some CPAN modules, so we put in a deprecation cycle instead.</p>

<p>Now the deprecation has been removed and this bug has been fixed. So <code>tie $scalar</code> will always tie the scalar, not the handle it holds. To tie the handle, use <code>tie *$scalar</code> (with an explicit asterisk). The same applies to <code>tied *$scalar</code> and <code>untie *$scalar</code>.</p>

<h2 id="IPC::Open3-no-longer-provides-xfork(),-xclose_on_exec()-and-xpipe_anon()"><a class="permalink" href="perl5160delta.html#IPC::Open3-no-longer-provides-xfork(),-xclose_on_exec()-and-xpipe_anon()">#</a><a id="IPC"></a><a id="IPC::Open3-no-longer-provides-xfork-xclose_on_exec-and-xpipe_anon"></a>IPC::Open3 no longer provides <code>xfork()</code>, <code>xclose_on_exec()</code> and <code>xpipe_anon()</code></h2>

<p>All three functions were private, undocumented, and unexported. They do not appear to be used by any code on CPAN. Two have been inlined and one deleted entirely.</p>

<h2 id="$$-no-longer-caches-PID"><a class="permalink" href="perl5160delta.html#$$-no-longer-caches-PID">#</a><a id="no-longer-caches-PID"></a><code>$$</code> no longer caches PID</h2>

<p>Previously, if one called fork(3) from C, Perl&#39;s notion of <code>$$</code> could go out of sync with what getpid() returns. By always fetching the value of <code>$$</code> via getpid(), this potential bug is eliminated. Code that depends on the caching behavior will break. As described in <a href="perl5160delta.html#%24%24-can-be-assigned-to">Core Enhancements</a>, <code>$$</code> is now writable, but it will be reset during a fork.</p>

<h2 id="$$-and-getppid()-no-longer-emulate-POSIX-semantics-under-LinuxThreads"><a class="permalink" href="perl5160delta.html#$$-and-getppid()-no-longer-emulate-POSIX-semantics-under-LinuxThreads">#</a><a id="and-getppid-no-longer-emulate-POSIX-semantics-under-LinuxThreads"></a><code>$$</code> and <code>getppid()</code> no longer emulate POSIX semantics under LinuxThreads</h2>

<p>The POSIX emulation of <code>$$</code> and <code>getppid()</code> under the obsolete LinuxThreads implementation has been removed. This only impacts users of Linux 2.4 and users of Debian GNU/kFreeBSD up to and including 6.0, not the vast majority of Linux installations that use NPTL threads.</p>

<p>This means that <code>getppid()</code>, like <code>$$</code>, is now always guaranteed to return the OS&#39;s idea of the current state of the process, not perl&#39;s cached version of it.</p>

<p>See the documentation for <a href="perlvar.html#%24%24">$$</a> for details.</p>

<h2 id="$&lt;,-$&gt;,-$(-and-$)-are-no-longer-cached"><a class="permalink" href="perl5160delta.html#$%3C,-$%3E,-$(-and-$)-are-no-longer-cached">#</a><a id="and-are-no-longer-cached"></a><code>$&lt;</code>, <code>$&gt;</code>, <code>$(</code> and <code>$)</code> are no longer cached</h2>

<p>Similarly to the changes to <code>$$</code> and <code>getppid()</code>, the internal caching of <code>$&lt;</code>, <code>$&gt;</code>, <code>$(</code> and <code>$)</code> has been removed.</p>

<p>When we cached these values our idea of what they were would drift out of sync with reality if someone (e.g., someone embedding perl) called <code>sete?[ug]id()</code> without updating <code>PL_e?[ug]id</code>. Having to deal with this complexity wasn&#39;t worth it given how cheap the <code>gete?[ug]id()</code> system call is.</p>

<p>This change will break a handful of CPAN modules that use the XS-level <code>PL_uid</code>, <code>PL_gid</code>, <code>PL_euid</code> or <code>PL_egid</code> variables.</p>

<p>The fix for those breakages is to use <code>PerlProc_gete?[ug]id()</code> to retrieve them (e.g., <code>PerlProc_getuid()</code>), and not to assign to <code>PL_e?[ug]id</code> if you change the UID/GID/EUID/EGID. There is no longer any need to do so since perl will always retrieve the up-to-date version of those values from the OS.</p>

<h2 id="Which-Non-ASCII-characters-get-quoted-by-quotemeta-and-\Q-has-changed"><a class="permalink" href="perl5160delta.html#Which-Non-ASCII-characters-get-quoted-by-quotemeta-and-%5CQ-has-changed">#</a><a id="Which"></a><a id="Which-Non-ASCII-characters-get-quoted-by-quotemeta-and-Q-has-changed"></a>Which Non-ASCII characters get quoted by <code>quotemeta</code> and <code>\Q</code> has changed</h2>

<p>This is unlikely to result in a real problem, as Perl does not attach special meaning to any non-ASCII character, so it is currently irrelevant which are quoted or not. This change fixes bug [perl #77654] and brings Perl&#39;s behavior more into line with Unicode&#39;s recommendations. See <a href="perlfunc.html#quotemeta">&quot;quotemeta&quot; in perlfunc</a>.</p>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl5160delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<ul>

<li><p>Improved performance for Unicode properties in regular expressions</p>

<p>Matching a code point against a Unicode property is now done via a binary search instead of linear. This means for example that the worst case for a 1000 item property is 10 probes instead of 1000. This inefficiency has been compensated for in the past by permanently storing in a hash the results of a given probe plus the results for the adjacent 64 code points, under the theory that near-by code points are likely to be searched for. A separate hash was used for each mention of a Unicode property in each regular expression. Thus, <code>qr/\p{foo}abc\p{foo}/</code> would generate two hashes. Any probes in one instance would be unknown to the other, and the hashes could expand separately to be quite large if the regular expression were used on many different widely-separated code points. Now, however, there is just one hash shared by all instances of a given property. This means that if <code>\p{foo}</code> is matched against &quot;A&quot; in one regular expression in a thread, the result will be known immediately to all regular expressions, and the relentless march of using up memory is slowed considerably.</p>

</li>
<li><p>Version declarations with the <code>use</code> keyword (e.g., <code>use 5.012</code>) are now faster, as they enable features without loading <i>feature.pm</i>.</p>

</li>
<li><p><code>local $_</code> is faster now, as it no longer iterates through magic that it is not going to copy anyway.</p>

</li>
<li><p>Perl 5.12.0 sped up the destruction of objects whose classes define empty <code>DESTROY</code> methods (to prevent autoloading), by simply not calling such empty methods. This release takes this optimization a step further, by not calling any <code>DESTROY</code> method that begins with a <code>return</code> statement. This can be useful for destructors that are only used for debugging:</p>

<pre><code>use constant DEBUG =&gt; 1;
sub DESTROY { return unless DEBUG; ... }</code></pre>

<p>Constant-folding will reduce the first statement to <code>return;</code> if DEBUG is set to 0, triggering this optimization.</p>

</li>
<li><p>Assigning to a variable that holds a typeglob or copy-on-write scalar is now much faster. Previously the typeglob would be stringified or the copy-on-write scalar would be copied before being clobbered.</p>

</li>
<li><p>Assignment to <code>substr</code> in void context is now more than twice its previous speed. Instead of creating and returning a special lvalue scalar that is then assigned to, <code>substr</code> modifies the original string itself.</p>

</li>
<li><p><code>substr</code> no longer calculates a value to return when called in void context.</p>

</li>
<li><p>Due to changes in <a href="./File::Glob.html">File::Glob</a>, Perl&#39;s <code>glob</code> function and its <code>&lt;...&gt;</code> equivalent are now much faster. The splitting of the pattern into words has been rewritten in C, resulting in speed-ups of 20% for some cases.</p>

<p>This does not affect <code>glob</code> on VMS, as it does not use File::Glob.</p>

</li>
<li><p>The short-circuiting operators <code>&amp;&amp;</code>, <code>||</code>, and <code>//</code>, when chained (such as <code>$a || $b || $c</code>), are now considerably faster to short-circuit, due to reduced optree traversal.</p>

</li>
<li><p>The implementation of <code>s///r</code> makes one fewer copy of the scalar&#39;s value.</p>

</li>
<li><p>Recursive calls to lvalue subroutines in lvalue scalar context use less memory.</p>

</li>
</ul>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5160delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="Deprecated-Modules"><a class="permalink" href="perl5160delta.html#Deprecated-Modules">#</a><a id="Deprecated"></a>Deprecated Modules</h2>

<dl>

<dt id="Version::Requirements"><a class="permalink" href="perl5160delta.html#Version::Requirements">#</a><a id="Version"></a><a href="./Version::Requirements.html">Version::Requirements</a></dt>
<dd>

<p>Version::Requirements is now DEPRECATED, use <a href="./CPAN::Meta::Requirements.html">CPAN::Meta::Requirements</a>, which is a drop-in replacement. It will be deleted from perl.git blead in v5.17.0.</p>

</dd>
</dl>

<h2 id="New-Modules-and-Pragmata"><a class="permalink" href="perl5160delta.html#New-Modules-and-Pragmata">#</a><a id="New4"></a>New Modules and Pragmata</h2>

<ul>

<li><p><a href="https://perldoc.perl.org/5.35.0/arybase">arybase</a> -- this new module implements the <code>$[</code> variable.</p>

</li>
<li><p><a href="./PerlIO::mmap.html">PerlIO::mmap</a> 0.010 has been added to the Perl core.</p>

<p>The <code>mmap</code> PerlIO layer is no longer implemented by perl itself, but has been moved out into the new <a href="./PerlIO::mmap.html">PerlIO::mmap</a> module.</p>

</li>
</ul>

<h2 id="Updated-Modules-and-Pragmata"><a class="permalink" href="perl5160delta.html#Updated-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated Modules and Pragmata</h2>

<p>This is only an overview of selected module updates. For a complete list of updates, run:</p>

<pre><code class="plaintext">$ corelist --diff 5.14.0 5.16.0</code></pre>

<p>You can substitute your favorite version in place of 5.14.0, too.</p>

<ul>

<li><p><a href="./Archive::Extract.html">Archive::Extract</a> has been upgraded from version 0.48 to 0.58.</p>

<p>Includes a fix for FreeBSD to only use <code>unzip</code> if it is located in <code>/usr/local/bin</code>, as FreeBSD 9.0 will ship with a limited <code>unzip</code> in <code>/usr/bin</code>.</p>

</li>
<li><p><a href="./Archive::Tar.html">Archive::Tar</a> has been upgraded from version 1.76 to 1.82.</p>

<p>Adjustments to handle files &gt;8gb (&gt;0777777777777 octal) and a feature to return the MD5SUM of files in the archive.</p>

</li>
<li><p><a href="base.html">base</a> has been upgraded from version 2.16 to 2.18.</p>

<p><code>base</code> no longer sets a module&#39;s <code>$VERSION</code> to &quot;-1&quot; when a module it loads does not define a <code>$VERSION</code>. This change has been made because &quot;-1&quot; is not a valid version number under the new &quot;lax&quot; criteria used internally by <code>UNIVERSAL::VERSION</code>. (See <a href="version.html">version</a> for more on &quot;lax&quot; version criteria.)</p>

<p><code>base</code> no longer internally skips loading modules it has already loaded and instead relies on <code>require</code> to inspect <code>%INC</code>. This fixes a bug when <code>base</code> is used with code that clear <code>%INC</code> to force a module to be reloaded.</p>

</li>
<li><p><a href="Carp.html">Carp</a> has been upgraded from version 1.20 to 1.26.</p>

<p>It now includes last read filehandle info and puts a dot after the file and line number, just like errors from <code>die</code> [perl #106538].</p>

</li>
<li><p><a href="charnames.html">charnames</a> has been updated from version 1.18 to 1.30.</p>

<p><code>charnames</code> can now be invoked with a new option, <code>:loose</code>, which is like the existing <code>:full</code> option, but enables Unicode loose name matching. Details are in <a href="charnames.html#LOOSE-MATCHES">&quot;LOOSE MATCHES&quot; in charnames</a>.</p>

</li>
<li><p><a href="./B::Deparse.html">B::Deparse</a> has been upgraded from version 1.03 to 1.14. This fixes numerous deparsing bugs.</p>

</li>
<li><p><a href="CGI.html">CGI</a> has been upgraded from version 3.52 to 3.59.</p>

<p>It uses the public and documented FCGI.pm API in CGI::Fast. CGI::Fast was using an FCGI API that was deprecated and removed from documentation more than ten years ago. Usage of this deprecated API with FCGI &gt;= 0.70 or FCGI &lt;= 0.73 introduces a security issue. <a href="https://rt.cpan.org/Public/Bug/Display.html?id=68380">https://rt.cpan.org/Public/Bug/Display.html?id=68380</a> <a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-2766">http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-2766</a></p>

<p>Things that may break your code:</p>

<p><code>url()</code> was fixed to return <code>PATH_INFO</code> when it is explicitly requested with either the <code>path=&gt;1</code> or <code>path_info=&gt;1</code> flag.</p>

<p>If your code is running under mod_rewrite (or compatible) and you are calling <code>self_url()</code> or you are calling <code>url()</code> and passing <code>path_info=&gt;1</code>, these methods will actually be returning <code>PATH_INFO</code> now, as you have explicitly requested or <code>self_url()</code> has requested on your behalf.</p>

<p>The <code>PATH_INFO</code> has been omitted in such URLs since the issue was introduced in the 3.12 release in December, 2005.</p>

<p>This bug is so old your application may have come to depend on it or workaround it. Check for application before upgrading to this release.</p>

<p>Examples of affected method calls:</p>

<pre><code>$q-&gt;url(-absolute =&gt; 1, -query =&gt; 1, -path_info =&gt; 1);
$q-&gt;url(-path=&gt;1);
$q-&gt;url(-full=&gt;1,-path=&gt;1);
$q-&gt;url(-rewrite=&gt;1,-path=&gt;1);
$q-&gt;self_url();</code></pre>

<p>We no longer read from STDIN when the Content-Length is not set, preventing requests with no Content-Length from sometimes freezing. This is consistent with the CGI RFC 3875, and is also consistent with CGI::Simple. However, the old behavior may have been expected by some command-line uses of CGI.pm.</p>

<p>In addition, the DELETE HTTP verb is now supported.</p>

</li>
<li><p><a href="./Compress::Zlib.html">Compress::Zlib</a> has been upgraded from version 2.035 to 2.048.</p>

<p>IO::Compress::Zip and IO::Uncompress::Unzip now have support for LZMA (method 14). There is a fix for a CRC issue in IO::Compress::Unzip and it supports Streamed Stored context now. And fixed a Zip64 issue in IO::Compress::Zip when the content size was exactly 0xFFFFFFFF.</p>

</li>
<li><p><a href="./Digest::SHA.html">Digest::SHA</a> has been upgraded from version 5.61 to 5.71.</p>

<p>Added BITS mode to the addfile method and shasum. This makes partial-byte inputs possible via files/STDIN and lets shasum check all 8074 NIST Msg vectors, where previously special programming was required to do this.</p>

</li>
<li><p><a href="Encode.html">Encode</a> has been upgraded from version 2.42 to 2.44.</p>

<p>Missing aliases added, a deep recursion error fixed and various documentation updates.</p>

<p>Addressed &#39;decode_xs n-byte heap-overflow&#39; security bug in Unicode.xs (CVE-2011-2939). (5.14.2)</p>

</li>
<li><p><a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> updated from version 0.280203 to 0.280206.</p>

<p>The new version appends CFLAGS and LDFLAGS to their Config.pm counterparts.</p>

</li>
<li><p><a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a> has been upgraded from version 2.2210 to 3.16.</p>

<p>Much of <a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a>, the module behind the XS compiler <code>xsubpp</code>, was rewritten and cleaned up. It has been made somewhat more extensible and now finally uses strictures.</p>

<p>The typemap logic has been moved into a separate module, <a href="./ExtUtils::Typemaps.html">ExtUtils::Typemaps</a>. See <a href="perl5160delta.html#New-Modules-and-Pragmata">&quot;New Modules and Pragmata&quot;</a>, above.</p>

<p>For a complete set of changes, please see the ExtUtils::ParseXS changelog, available on the CPAN.</p>

</li>
<li><p><a href="./File::Glob.html">File::Glob</a> has been upgraded from version 1.12 to 1.17.</p>

<p>On Windows, tilde (~) expansion now checks the <code>USERPROFILE</code> environment variable, after checking <code>HOME</code>.</p>

<p>It has a new <code>:bsd_glob</code> export tag, intended to replace <code>:glob</code>. Like <code>:glob</code> it overrides <code>glob</code> with a function that does not split the glob pattern into words, but, unlike <code>:glob</code>, it iterates properly in scalar context, instead of returning the last file.</p>

<p>There are other changes affecting Perl&#39;s own <code>glob</code> operator (which uses File::Glob internally, except on VMS). See <a href="perl5160delta.html#Performance-Enhancements">&quot;Performance Enhancements&quot;</a> and <a href="perl5160delta.html#Selected-Bug-Fixes">&quot;Selected Bug Fixes&quot;</a>.</p>

</li>
<li><p><a href="FindBin.html">FindBin</a> updated from version 1.50 to 1.51.</p>

<p>It no longer returns a wrong result if a script of the same name as the current one exists in the path and is executable.</p>

</li>
<li><p><a href="./HTTP::Tiny.html">HTTP::Tiny</a> has been upgraded from version 0.012 to 0.017.</p>

<p>Added support for using <code>$ENV{http_proxy}</code> to set the default proxy host.</p>

<p>Adds additional shorthand methods for all common HTTP verbs, a <code>post_form()</code> method for POST-ing x-www-form-urlencoded data and a <code>www_form_urlencode()</code> utility method.</p>

</li>
<li><p><a href="IO.html">IO</a> has been upgraded from version 1.25_04 to 1.25_06, and <a href="./IO::Handle.html">IO::Handle</a> from version 1.31 to 1.33.</p>

<p>Together, these upgrades fix a problem with IO::Handle&#39;s <code>getline</code> and <code>getlines</code> methods. When these methods are called on the special ARGV handle, the next file is automatically opened, as happens with the built-in <code>&lt;&gt;</code> and <code>readline</code> functions. But, unlike the built-ins, these methods were not respecting the caller&#39;s use of the <a href="open.html">open</a> pragma and applying the appropriate I/O layers to the newly-opened file [rt.cpan.org #66474].</p>

</li>
<li><p><a href="./IPC::Cmd.html">IPC::Cmd</a> has been upgraded from version 0.70 to 0.76.</p>

<p>Capturing of command output (both <code>STDOUT</code> and <code>STDERR</code>) is now supported using <a href="./IPC::Open3.html">IPC::Open3</a> on MSWin32 without requiring <a href="./IPC::Run.html">IPC::Run</a>.</p>

</li>
<li><p><a href="./IPC::Open3.html">IPC::Open3</a> has been upgraded from version 1.09 to 1.12.</p>

<p>Fixes a bug which prevented use of <code>open3</code> on Windows when <code>*STDIN</code>, <code>*STDOUT</code> or <code>*STDERR</code> had been localized.</p>

<p>Fixes a bug which prevented duplicating numeric file descriptors on Windows.</p>

<p><code>open3</code> with &quot;-&quot; for the program name works once more. This was broken in version 1.06 (and hence in Perl 5.14.0) [perl #95748].</p>

</li>
<li><p><a href="./Locale::Codes.html">Locale::Codes</a> has been upgraded from version 3.16 to 3.21.</p>

<p>Added Language Extension codes (langext) and Language Variation codes (langvar) as defined in the IANA language registry.</p>

<p>Added language codes from ISO 639-5</p>

<p>Added language/script codes from the IANA language subtag registry</p>

<p>Fixed an uninitialized value warning [rt.cpan.org #67438].</p>

<p>Fixed the return value for the all_XXX_codes and all_XXX_names functions [rt.cpan.org #69100].</p>

<p>Reorganized modules to move Locale::MODULE to Locale::Codes::MODULE to allow for cleaner future additions. The original four modules (Locale::Language, Locale::Currency, Locale::Country, Locale::Script) will continue to work, but all new sets of codes will be added in the Locale::Codes namespace.</p>

<p>The code2XXX, XXX2code, all_XXX_codes, and all_XXX_names functions now support retired codes. All codesets may be specified by a constant or by their name now. Previously, they were specified only by a constant.</p>

<p>The alias_code function exists for backward compatibility. It has been replaced by rename_country_code. The alias_code function will be removed some time after September, 2013.</p>

<p>All work is now done in the central module (Locale::Codes). Previously, some was still done in the wrapper modules (Locale::Codes::*). Added Language Family codes (langfam) as defined in ISO 639-5.</p>

</li>
<li><p><a href="./Math::BigFloat.html">Math::BigFloat</a> has been upgraded from version 1.993 to 1.997.</p>

<p>The <code>numify</code> method has been corrected to return a normalized Perl number (the result of <code>0 + $thing</code>), instead of a string [rt.cpan.org #66732].</p>

</li>
<li><p><a href="./Math::BigInt.html">Math::BigInt</a> has been upgraded from version 1.994 to 1.998.</p>

<p>It provides a new <code>bsgn</code> method that complements the <code>babs</code> method.</p>

<p>It fixes the internal <code>objectify</code> function&#39;s handling of &quot;foreign objects&quot; so they are converted to the appropriate class (Math::BigInt or Math::BigFloat).</p>

</li>
<li><p><a href="./Math::BigRat.html">Math::BigRat</a> has been upgraded from version 0.2602 to 0.2603.</p>

<p><code>int()</code> on a Math::BigRat object containing -1/2 now creates a Math::BigInt containing 0, rather than -0. <a href="./Math::BigInt.html">Math::BigInt</a> does not even support negative zero, so the resulting object was actually malformed [perl #95530].</p>

</li>
<li><p><a href="./Math::Complex.html">Math::Complex</a> has been upgraded from version 1.56 to 1.59 and <a href="./Math::Trig.html">Math::Trig</a> from version 1.2 to 1.22.</p>

<p>Fixes include: correct copy constructor usage; fix polarwise formatting with numeric format specifier; and more stable <code>great_circle_direction</code> algorithm.</p>

</li>
<li><p><a href="./Module::CoreList.html">Module::CoreList</a> has been upgraded from version 2.51 to 2.66.</p>

<p>The <code>corelist</code> utility now understands the <code>-r</code> option for displaying Perl release dates and the <code>--diff</code> option to print the set of modlib changes between two perl distributions.</p>

</li>
<li><p><a href="./Module::Metadata.html">Module::Metadata</a> has been upgraded from version 1.000004 to 1.000009.</p>

<p>Adds <code>provides</code> method to generate a CPAN META provides data structure correctly; use of <code>package_versions_from_directory</code> is discouraged.</p>

</li>
<li><p><a href="ODBM_File.html">ODBM_File</a> has been upgraded from version 1.10 to 1.12.</p>

<p>The XS code is now compiled with <code>PERL_NO_GET_CONTEXT</code>, which will aid performance under ithreads.</p>

</li>
<li><p><a href="open.html">open</a> has been upgraded from version 1.08 to 1.10.</p>

<p>It no longer turns off layers on standard handles when invoked without the &quot;:std&quot; directive. Similarly, when invoked <i>with</i> the &quot;:std&quot; directive, it now clears layers on STDERR before applying the new ones, and not just on STDIN and STDOUT [perl #92728].</p>

</li>
<li><p><a href="overload.html">overload</a> has been upgraded from version 1.13 to 1.18.</p>

<p><code>overload::Overloaded</code> no longer calls <code>can</code> on the class, but uses another means to determine whether the object has overloading. It was never correct for it to call <code>can</code>, as overloading does not respect AUTOLOAD. So classes that autoload methods and implement <code>can</code> no longer have to account for overloading [perl #40333].</p>

<p>A warning is now produced for invalid arguments. See <a href="perl5160delta.html#New-Diagnostics">&quot;New Diagnostics&quot;</a>.</p>

</li>
<li><p><a href="./PerlIO::scalar.html">PerlIO::scalar</a> has been upgraded from version 0.11 to 0.14.</p>

<p>(This is the module that implements <code>open $fh, &#39;&gt;&#39;, \$scalar</code>.)</p>

<p>It fixes a problem with <code>open my $fh, &quot;&gt;&quot;, \$scalar</code> not working if <code>$scalar</code> is a copy-on-write scalar. (5.14.2)</p>

<p>It also fixes a hang that occurs with <code>readline</code> or <code>&lt;$fh&gt;</code> if a typeglob has been assigned to $scalar [perl #92258].</p>

<p>It no longer assumes during <code>seek</code> that $scalar is a string internally. If it didn&#39;t crash, it was close to doing so [perl #92706]. Also, the internal print routine no longer assumes that the position set by <code>seek</code> is valid, but extends the string to that position, filling the intervening bytes (between the old length and the seek position) with nulls [perl #78980].</p>

<p>Printing to an in-memory handle now works if the $scalar holds a reference, stringifying the reference before modifying it. References used to be treated as empty strings.</p>

<p>Printing to an in-memory handle no longer crashes if the $scalar happens to hold a number internally, but no string buffer.</p>

<p>Printing to an in-memory handle no longer creates scalars that confuse the regular expression engine [perl #108398].</p>

</li>
<li><p><a href="./Pod::Functions.html">Pod::Functions</a> has been upgraded from version 1.04 to 1.05.</p>

<p><i>Functions.pm</i> is now generated at perl build time from annotations in <i>perlfunc.pod</i>. This will ensure that <a href="./Pod::Functions.html">Pod::Functions</a> and <a href="perlfunc.html">perlfunc</a> remain in synchronisation.</p>

</li>
<li><p><a href="./Pod::Html.html">Pod::Html</a> has been upgraded from version 1.11 to 1.1502.</p>

<p>This is an extensive rewrite of Pod::Html to use <a href="./Pod::Simple.html">Pod::Simple</a> under the hood. The output has changed significantly.</p>

</li>
<li><p><a href="./Pod::Perldoc.html">Pod::Perldoc</a> has been upgraded from version 3.15_03 to 3.17.</p>

<p>It corrects the search paths on VMS [perl #90640]. (5.14.1)</p>

<p>The <b>-v</b> option now fetches the right section for <code>$0</code>.</p>

<p>This upgrade has numerous significant fixes. Consult its changelog on the CPAN for more information.</p>

</li>
<li><p><a href="POSIX.html">POSIX</a> has been upgraded from version 1.24 to 1.30.</p>

<p><a href="POSIX.html">POSIX</a> no longer uses <a href="AutoLoader.html">AutoLoader</a>. Any code which was relying on this implementation detail was buggy, and may fail because of this change. The module&#39;s Perl code has been considerably simplified, roughly halving the number of lines, with no change in functionality. The XS code has been refactored to reduce the size of the shared object by about 12%, with no change in functionality. More POSIX functions now have tests.</p>

<p><code>sigsuspend</code> and <code>pause</code> now run signal handlers before returning, as the whole point of these two functions is to wait until a signal has arrived, and then return <i>after</i> it has been triggered. Delayed, or &quot;safe&quot;, signals were preventing that from happening, possibly resulting in race conditions [perl #107216].</p>

<p><code>POSIX::sleep</code> is now a direct call into the underlying OS <code>sleep</code> function, instead of being a Perl wrapper on <code>CORE::sleep</code>. <code>POSIX::dup2</code> now returns the correct value on Win32 (<i>i.e.</i>, the file descriptor). <code>POSIX::SigSet</code> <code>sigsuspend</code> and <code>sigpending</code> and <code>POSIX::pause</code> now dispatch safe signals immediately before returning to their caller.</p>

<p><code>POSIX::Termios::setattr</code> now defaults the third argument to <code>TCSANOW</code>, instead of 0. On most platforms <code>TCSANOW</code> is defined to be 0, but on some 0 is not a valid parameter, which caused a call with defaults to fail.</p>

</li>
<li><p><a href="Socket.html">Socket</a> has been upgraded from version 1.94 to 2.001.</p>

<p>It has new functions and constants for handling IPv6 sockets:</p>

<pre><code class="plaintext">pack_ipv6_mreq
unpack_ipv6_mreq
IPV6_ADD_MEMBERSHIP
IPV6_DROP_MEMBERSHIP
IPV6_MTU
IPV6_MTU_DISCOVER
IPV6_MULTICAST_HOPS
IPV6_MULTICAST_IF
IPV6_MULTICAST_LOOP
IPV6_UNICAST_HOPS
IPV6_V6ONLY</code></pre>

</li>
<li><p><a href="Storable.html">Storable</a> has been upgraded from version 2.27 to 2.34.</p>

<p>It no longer turns copy-on-write scalars into read-only scalars when freezing and thawing.</p>

</li>
<li><p><a href="./Sys::Syslog.html">Sys::Syslog</a> has been upgraded from version 0.27 to 0.29.</p>

<p>This upgrade closes many outstanding bugs.</p>

</li>
<li><p><a href="./Term::ANSIColor.html">Term::ANSIColor</a> has been upgraded from version 3.00 to 3.01.</p>

<p>Only interpret an initial array reference as a list of colors, not any initial reference, allowing the colored function to work properly on objects with stringification defined.</p>

</li>
<li><p><a href="./Term::ReadLine.html">Term::ReadLine</a> has been upgraded from version 1.07 to 1.09.</p>

<p>Term::ReadLine now supports any event loop, including unpublished ones and simple <a href="./IO::Select.html">IO::Select</a>, loops without the need to rewrite existing code for any particular framework [perl #108470].</p>

</li>
<li><p><a href="./threads::shared.html">threads::shared</a> has been upgraded from version 1.37 to 1.40.</p>

<p>Destructors on shared objects used to be ignored sometimes if the objects were referenced only by shared data structures. This has been mostly fixed, but destructors may still be ignored if the objects still exist at global destruction time [perl #98204].</p>

</li>
<li><p><a href="./Unicode::Collate.html">Unicode::Collate</a> has been upgraded from version 0.73 to 0.89.</p>

<p>Updated to CLDR 1.9.1</p>

<p>Locales updated to CLDR 2.0: mk, mt, nb, nn, ro, ru, sk, sr, sv, uk, zh__pinyin, zh__stroke</p>

<p>Newly supported locales: bn, fa, ml, mr, or, pa, sa, si, si__dictionary, sr_Latn, sv__reformed, ta, te, th, ur, wae.</p>

<p>Tailored compatibility ideographs as well as unified ideographs for the locales: ja, ko, zh__big5han, zh__gb2312han, zh__pinyin, zh__stroke.</p>

<p>Locale/*.pl files are now searched for in @INC.</p>

</li>
<li><p><a href="./Unicode::Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.10 to 1.14.</p>

<p>Fixes for the removal of <i>unicore/CompositionExclusions.txt</i> from core.</p>

</li>
<li><p><a href="./Unicode::UCD.html">Unicode::UCD</a> has been upgraded from version 0.32 to 0.43.</p>

<p>This adds four new functions: <code>prop_aliases()</code> and <code>prop_value_aliases()</code>, which are used to find all Unicode-approved synonyms for property names, or to convert from one name to another; <code>prop_invlist</code> which returns all code points matching a given Unicode binary property; and <code>prop_invmap</code> which returns the complete specification of a given Unicode property.</p>

</li>
<li><p><a href="./Win32API::File.html">Win32API::File</a> has been upgraded from version 0.1101 to 0.1200.</p>

<p>Added SetStdHandle and GetStdHandle functions</p>

</li>
</ul>

<h2 id="Removed-Modules-and-Pragmata"><a class="permalink" href="perl5160delta.html#Removed-Modules-and-Pragmata">#</a><a id="Removed"></a>Removed Modules and Pragmata</h2>

<p>As promised in Perl 5.14.0&#39;s release notes, the following modules have been removed from the core distribution, and if needed should be installed from CPAN instead.</p>

<ul>

<li><p><a href="./Devel::DProf.html">Devel::DProf</a> has been removed from the Perl core. Prior version was 20110228.00.</p>

</li>
<li><p><a href="Shell.html">Shell</a> has been removed from the Perl core. Prior version was 0.72_01.</p>

</li>
<li><p>Several old perl4-style libraries which have been deprecated with 5.14 are now removed:</p>

<pre><code class="plaintext">abbrev.pl assert.pl bigfloat.pl bigint.pl bigrat.pl cacheout.pl
complete.pl ctime.pl dotsh.pl exceptions.pl fastcwd.pl flush.pl
getcwd.pl getopt.pl getopts.pl hostname.pl importenv.pl
lib/find{,depth}.pl look.pl newgetopt.pl open2.pl open3.pl
pwd.pl shellwords.pl stat.pl tainted.pl termcap.pl timelocal.pl</code></pre>

<p>They can be found on CPAN as <a href="./Perl4::CoreLibs.html">Perl4::CoreLibs</a>.</p>

</li>
</ul>

<h1 id="Documentation"><a class="permalink" href="perl5160delta.html#Documentation">#</a>Documentation</h1>

<h2 id="New-Documentation"><a class="permalink" href="perl5160delta.html#New-Documentation">#</a><a id="New5"></a>New Documentation</h2>

<h3 id="perldtrace"><a class="permalink" href="perl5160delta.html#perldtrace">#</a><a href="perldtrace.html">perldtrace</a></h3>

<p><a href="perldtrace.html">perldtrace</a> describes Perl&#39;s DTrace support, listing the provided probes and gives examples of their use.</p>

<h3 id="perlexperiment"><a class="permalink" href="perl5160delta.html#perlexperiment">#</a><a href="perlexperiment.html">perlexperiment</a></h3>

<p>This document is intended to provide a list of experimental features in Perl. It is still a work in progress.</p>

<h3 id="perlootut"><a class="permalink" href="perl5160delta.html#perlootut">#</a><a href="perlootut.html">perlootut</a></h3>

<p>This a new OO tutorial. It focuses on basic OO concepts, and then recommends that readers choose an OO framework from CPAN.</p>

<h3 id="perlxstypemap"><a class="permalink" href="perl5160delta.html#perlxstypemap">#</a><a href="perlxstypemap.html">perlxstypemap</a></h3>

<p>The new manual describes the XS typemapping mechanism in unprecedented detail and combines new documentation with information extracted from <a href="perlxs.html">perlxs</a> and the previously unofficial list of all core typemaps.</p>

<h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="perl5160delta.html#Changes-to-Existing-Documentation">#</a><a id="Changes1"></a>Changes to Existing Documentation</h2>

<h3 id="perlapi"><a class="permalink" href="perl5160delta.html#perlapi">#</a><a href="perlapi.html">perlapi</a></h3>

<ul>

<li><p>The HV API has long accepted negative lengths to show that the key is in UTF8. This is now documented.</p>

</li>
<li><p>The <code>boolSV()</code> macro is now documented.</p>

</li>
</ul>

<h3 id="perlfunc"><a class="permalink" href="perl5160delta.html#perlfunc">#</a><a href="perlfunc.html">perlfunc</a></h3>

<ul>

<li><p><code>dbmopen</code> treats a 0 mode as a special case, that prevents a nonexistent file from being created. This has been the case since Perl 5.000, but was never documented anywhere. Now the perlfunc entry mentions it [perl #90064].</p>

</li>
<li><p>As an accident of history, <code>open $fh, &#39;&lt;:&#39;, ...</code> applies the default layers for the platform (<code>:raw</code> on Unix, <code>:crlf</code> on Windows), ignoring whatever is declared by <a href="open.html">open.pm</a>. This seems such a useful feature it has been documented in <a href="perlfunc.html#open">perlfunc</a> and <a href="open.html">open</a>.</p>

</li>
<li><p>The entry for <code>split</code> has been rewritten. It is now far clearer than before.</p>

</li>
</ul>

<h3 id="perlguts"><a class="permalink" href="perl5160delta.html#perlguts">#</a><a href="perlguts.html">perlguts</a></h3>

<ul>

<li><p>A new section, <a href="perlguts.html#Autoloading-with-XSUBs">Autoloading with XSUBs</a>, has been added, which explains the two APIs for accessing the name of the autoloaded sub.</p>

</li>
<li><p>Some function descriptions in <a href="perlguts.html">perlguts</a> were confusing, as it was not clear whether they referred to the function above or below the description. This has been clarified [perl #91790].</p>

</li>
</ul>

<h3 id="perlobj"><a class="permalink" href="perl5160delta.html#perlobj">#</a><a href="perlobj.html">perlobj</a></h3>

<ul>

<li><p>This document has been rewritten from scratch, and its coverage of various OO concepts has been expanded.</p>

</li>
</ul>

<h3 id="perlop"><a class="permalink" href="perl5160delta.html#perlop">#</a><a href="perlop.html">perlop</a></h3>

<ul>

<li><p>Documentation of the smartmatch operator has been reworked and moved from perlsyn to perlop where it belongs.</p>

<p>It has also been corrected for the case of <code>undef</code> on the left-hand side. The list of different smart match behaviors had an item in the wrong place.</p>

</li>
<li><p>Documentation of the ellipsis statement (<code>...</code>) has been reworked and moved from perlop to perlsyn.</p>

</li>
<li><p>The explanation of bitwise operators has been expanded to explain how they work on Unicode strings (5.14.1).</p>

</li>
<li><p>More examples for <code>m//g</code> have been added (5.14.1).</p>

</li>
<li><p>The <code>&lt;&lt;\FOO</code> here-doc syntax has been documented (5.14.1).</p>

</li>
</ul>

<h3 id="perlpragma"><a class="permalink" href="perl5160delta.html#perlpragma">#</a><a href="perlpragma.html">perlpragma</a></h3>

<ul>

<li><p>There is now a standard convention for naming keys in the <code>%^H</code>, documented under <a href="perlpragma.html#Key-naming">Key naming</a>.</p>

</li>
</ul>

<h3 id="&quot;Laundering-and-Detecting-Tainted-Data&quot;-in-perlsec"><a class="permalink" href="perl5160delta.html#%22Laundering-and-Detecting-Tainted-Data%22-in-perlsec">#</a><a id="Laundering-and-Detecting-Tainted-Data-in-perlsec"></a><a href="perlsec.html#Laundering-and-Detecting-Tainted-Data">&quot;Laundering and Detecting Tainted Data&quot; in perlsec</a></h3>

<ul>

<li><p>The example function for checking for taintedness contained a subtle error. <code>$@</code> needs to be localized to prevent its changing this global&#39;s value outside the function. The preferred method to check for this remains <a href="./Scalar::Util.html#tainted">&quot;tainted&quot; in Scalar::Util</a>.</p>

</li>
</ul>

<h3 id="perllol"><a class="permalink" href="perl5160delta.html#perllol">#</a><a href="perllol.html">perllol</a></h3>

<ul>

<li><p><a href="perllol.html">perllol</a> has been expanded with examples using the new <code>push $scalar</code> syntax introduced in Perl 5.14.0 (5.14.1).</p>

</li>
</ul>

<h3 id="perlmod"><a class="permalink" href="perl5160delta.html#perlmod">#</a><a href="perlmod.html">perlmod</a></h3>

<ul>

<li><p><a href="perlmod.html">perlmod</a> now states explicitly that some types of explicit symbol table manipulation are not supported. This codifies what was effectively already the case [perl #78074].</p>

</li>
</ul>

<h3 id="perlpodstyle"><a class="permalink" href="perl5160delta.html#perlpodstyle">#</a><a href="perlpodstyle.html">perlpodstyle</a></h3>

<ul>

<li><p>The tips on which formatting codes to use have been corrected and greatly expanded.</p>

</li>
<li><p>There are now a couple of example one-liners for previewing POD files after they have been edited.</p>

</li>
</ul>

<h3 id="perlre"><a class="permalink" href="perl5160delta.html#perlre">#</a><a href="perlre.html">perlre</a></h3>

<ul>

<li><p>The <code>(*COMMIT)</code> directive is now listed in the right section (<a href="perlre.html#Verbs-without-an-argument">Verbs without an argument</a>).</p>

</li>
</ul>

<h3 id="perlrun"><a class="permalink" href="perl5160delta.html#perlrun">#</a><a href="perlrun.html">perlrun</a></h3>

<ul>

<li><p><a href="perlrun.html">perlrun</a> has undergone a significant clean-up. Most notably, the <b>-0x...</b> form of the <b>-0</b> flag has been clarified, and the final section on environment variables has been corrected and expanded (5.14.1).</p>

</li>
</ul>

<h3 id="perlsub"><a class="permalink" href="perl5160delta.html#perlsub">#</a><a href="perlsub.html">perlsub</a></h3>

<ul>

<li><p>The ($;) prototype syntax, which has existed for rather a long time, is now documented in <a href="perlsub.html">perlsub</a>. It lets a unary function have the same precedence as a list operator.</p>

</li>
</ul>

<h3 id="perltie"><a class="permalink" href="perl5160delta.html#perltie">#</a><a href="perltie.html">perltie</a></h3>

<ul>

<li><p>The required syntax for tying handles has been documented.</p>

</li>
</ul>

<h3 id="perlvar"><a class="permalink" href="perl5160delta.html#perlvar">#</a><a href="perlvar.html">perlvar</a></h3>

<ul>

<li><p>The documentation for <a href="perlvar.html#%24%21">$!</a> has been corrected and clarified. It used to state that $! could be <code>undef</code>, which is not the case. It was also unclear whether system calls set C&#39;s <code>errno</code> or Perl&#39;s <code>$!</code> [perl #91614].</p>

</li>
<li><p>Documentation for <a href="perlvar.html#%24%24">$$</a> has been amended with additional cautions regarding changing the process ID.</p>

</li>
</ul>

<h3 id="Other-Changes1"><a class="permalink" href="perl5160delta.html#Other-Changes1">#</a><a id="Other3"></a>Other Changes</h3>

<ul>

<li><p><a href="perlxs.html">perlxs</a> was extended with documentation on inline typemaps.</p>

</li>
<li><p><a href="perlref.html">perlref</a> has a new <a href="perlref.html#Circular-References">Circular References</a> section explaining how circularities may not be freed and how to solve that with weak references.</p>

</li>
<li><p>Parts of <a href="perlapi.html">perlapi</a> were clarified, and Perl equivalents of some C functions have been added as an additional mode of exposition.</p>

</li>
<li><p>A few parts of <a href="perlre.html">perlre</a> and <a href="perlrecharclass.html">perlrecharclass</a> were clarified.</p>

</li>
</ul>

<h2 id="Removed-Documentation"><a class="permalink" href="perl5160delta.html#Removed-Documentation">#</a><a id="Removed1"></a>Removed Documentation</h2>

<h3 id="Old-OO-Documentation"><a class="permalink" href="perl5160delta.html#Old-OO-Documentation">#</a><a id="Old"></a>Old OO Documentation</h3>

<p>The old OO tutorials, perltoot, perltooc, and perlboot, have been removed. The perlbot (bag of object tricks) document has been removed as well.</p>

<h3 id="Development-Deltas"><a class="permalink" href="perl5160delta.html#Development-Deltas">#</a><a id="Development"></a>Development Deltas</h3>

<p>The perldelta files for development releases are no longer packaged with perl. These can still be found in the perl source code repository.</p>

<h1 id="Diagnostics"><a class="permalink" href="perl5160delta.html#Diagnostics">#</a>Diagnostics</h1>

<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="perldiag.html">perldiag</a>.</p>

<h2 id="New-Diagnostics"><a class="permalink" href="perl5160delta.html#New-Diagnostics">#</a><a id="New6"></a>New Diagnostics</h2>

<h3 id="New-Errors"><a class="permalink" href="perl5160delta.html#New-Errors">#</a><a id="New7"></a>New Errors</h3>

<ul>

<li><p><a href="perldiag.html#Cannot-set-tied-%40DB%3A%3Aargs">Cannot set tied @DB::args</a></p>

<p>This error occurs when <code>caller</code> tries to set <code>@DB::args</code> but finds it tied. Before this error was added, it used to crash instead.</p>

</li>
<li><p><a href="perldiag.html#Cannot-tie-unreifiable-array">Cannot tie unreifiable array</a></p>

<p>This error is part of a safety check that the <code>tie</code> operator does before tying a special array like <code>@_</code>. You should never see this message.</p>

</li>
<li><p><a href="perldiag.html#%26CORE%3A%3A%25s-cannot-be-called-directly">&amp;CORE::%s cannot be called directly</a></p>

<p>This occurs when a subroutine in the <code>CORE::</code> namespace is called with <code>&amp;foo</code> syntax or through a reference. Some subroutines in this package cannot yet be called that way, but must be called as barewords. See <a href="perl5160delta.html#Subroutines-in-the-CORE-namespace">&quot;Subroutines in the <code>CORE</code> namespace&quot;</a>, above.</p>

</li>
<li><p><a href="perldiag.html#Source-filters-apply-only-to-byte-streams">Source filters apply only to byte streams</a></p>

<p>This new error occurs when you try to activate a source filter (usually by loading a source filter module) within a string passed to <code>eval</code> under the <code>unicode_eval</code> feature.</p>

</li>
</ul>

<h3 id="New-Warnings"><a class="permalink" href="perl5160delta.html#New-Warnings">#</a><a id="New8"></a>New Warnings</h3>

<ul>

<li><p><a href="perldiag.html#defined%28%40array%29-is-deprecated">defined(@array) is deprecated</a></p>

<p>The long-deprecated <code>defined(@array)</code> now also warns for package variables. Previously it issued a warning for lexical variables only.</p>

</li>
<li><p><a href="perldiag.html#length%28%29-used-on-%25s">length() used on %s</a></p>

<p>This new warning occurs when <code>length</code> is used on an array or hash, instead of <code>scalar(@array)</code> or <code>scalar(keys %hash)</code>.</p>

</li>
<li><p><a href="perldiag.html#lvalue-attribute-%25s-already-defined-subroutine">lvalue attribute %s already-defined subroutine</a></p>

<p><a href="attributes.html">attributes.pm</a> now emits this warning when the :lvalue attribute is applied to a Perl subroutine that has already been defined, as doing so can have unexpected side-effects.</p>

</li>
<li><p><a href="perldiag.html#overload-arg-%27%25s%27-is-invalid">overload arg &#39;%s&#39; is invalid</a></p>

<p>This warning, in the &quot;overload&quot; category, is produced when the overload pragma is given an argument it doesn&#39;t recognize, presumably a mistyped operator.</p>

</li>
<li><p><a href="perldiag.html#%24%5B-used-in-%25s-%28did-you-mean-%24%5D-%3F%29">$[ used in %s (did you mean $] ?)</a></p>

<p>This new warning exists to catch the mistaken use of <code>$[</code> in version checks. <code>$]</code>, not <code>$[</code>, contains the version number.</p>

</li>
<li><p><a href="perldiag.html#Useless-assignment-to-a-temporary">Useless assignment to a temporary</a></p>

<p>Assigning to a temporary scalar returned from an lvalue subroutine now produces this warning [perl #31946].</p>

</li>
<li><p><a href="perldiag.html#Useless-use-of-%5CE">Useless use of \E</a></p>

<p><code>\E</code> does nothing unless preceded by <code>\Q</code>, <code>\L</code> or <code>\U</code>.</p>

</li>
</ul>

<h2 id="Removed-Errors"><a class="permalink" href="perl5160delta.html#Removed-Errors">#</a><a id="Removed2"></a>Removed Errors</h2>

<ul>

<li><p>&quot;sort is now a reserved word&quot;</p>

<p>This error used to occur when <code>sort</code> was called without arguments, followed by <code>;</code> or <code>)</code>. (E.g., <code>sort;</code> would die, but <code>{sort}</code> was OK.) This error message was added in Perl 3 to catch code like <code>close(sort)</code> which would no longer work. More than two decades later, this message is no longer appropriate. Now <code>sort</code> without arguments is always allowed, and returns an empty list, as it did in those cases where it was already allowed [perl #90030].</p>

</li>
</ul>

<h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="perl5160delta.html#Changes-to-Existing-Diagnostics">#</a><a id="Changes2"></a>Changes to Existing Diagnostics</h2>

<ul>

<li><p>The &quot;Applying pattern match...&quot; or similar warning produced when an array or hash is on the left-hand side of the <code>=~</code> operator now mentions the name of the variable.</p>

</li>
<li><p>The &quot;Attempt to free non-existent shared string&quot; has had the spelling of &quot;non-existent&quot; corrected to &quot;nonexistent&quot;. It was already listed with the correct spelling in <a href="perldiag.html">perldiag</a>.</p>

</li>
<li><p>The error messages for using <code>default</code> and <code>when</code> outside a topicalizer have been standardized to match the messages for <code>continue</code> and loop controls. They now read &#39;Can&#39;t &quot;default&quot; outside a topicalizer&#39; and &#39;Can&#39;t &quot;when&quot; outside a topicalizer&#39;. They both used to be &#39;Can&#39;t use when() outside a topicalizer&#39; [perl #91514].</p>

</li>
<li><p>The message, &quot;Code point 0x%X is not Unicode, no properties match it; all inverse properties do&quot; has been changed to &quot;Code point 0x%X is not Unicode, all \p{} matches fail; all \P{} matches succeed&quot;.</p>

</li>
<li><p>Redefinition warnings for constant subroutines used to be mandatory, even occurring under <code>no warnings</code>. Now they respect the <a href="warnings.html">warnings</a> pragma.</p>

</li>
<li><p>The &quot;glob failed&quot; warning message is now suppressible via <code>no warnings</code> [perl #111656].</p>

</li>
<li><p>The <a href="perldiag.html#Invalid-version-format-%28%25s%29">Invalid version format</a> error message now says &quot;negative version number&quot; within the parentheses, rather than &quot;non-numeric data&quot;, for negative numbers.</p>

</li>
<li><p>The two warnings <a href="perldiag.html#Possible-attempt-to-put-comments-in-qw%28%29-list">Possible attempt to put comments in qw() list</a> and <a href="perldiag.html#Possible-attempt-to-separate-words-with-commas">Possible attempt to separate words with commas</a> are no longer mutually exclusive: the same <code>qw</code> construct may produce both.</p>

</li>
<li><p>The uninitialized warning for <code>y///r</code> when <code>$_</code> is implicit and undefined now mentions the variable name, just like the non-/r variation of the operator.</p>

</li>
<li><p>The &#39;Use of &quot;foo&quot; without parentheses is ambiguous&#39; warning has been extended to apply also to user-defined subroutines with a (;$) prototype, and not just to built-in functions.</p>

</li>
<li><p>Warnings that mention the names of lexical (<code>my</code>) variables with Unicode characters in them now respect the presence or absence of the <code>:utf8</code> layer on the output handle, instead of outputting UTF8 regardless. Also, the correct names are included in the strings passed to <code>$SIG{__WARN__}</code> handlers, rather than the raw UTF8 bytes.</p>

</li>
</ul>

<h1 id="Utility-Changes"><a class="permalink" href="perl5160delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h3 id="h2ph"><a class="permalink" href="perl5160delta.html#h2ph">#</a><a href="h2ph.html">h2ph</a></h3>

<ul>

<li><p><a href="h2ph.html">h2ph</a> used to generate code of the form</p>

<pre><code>unless(defined(&amp;FOO)) {
  sub FOO () {42;}
}</code></pre>

<p>But the subroutine is a compile-time declaration, and is hence unaffected by the condition. It has now been corrected to emit a string <code>eval</code> around the subroutine [perl #99368].</p>

</li>
</ul>

<h3 id="splain"><a class="permalink" href="perl5160delta.html#splain">#</a><a href="splain.html">splain</a></h3>

<ul>

<li><p><i>splain</i> no longer emits backtraces with the first line number repeated.</p>

<p>This:</p>

<pre><code class="plaintext">Uncaught exception from user code:
        Cannot fwiddle the fwuddle at -e line 1.
 at -e line 1
        main::baz() called at -e line 1
        main::bar() called at -e line 1
        main::foo() called at -e line 1</code></pre>

<p>has become this:</p>

<pre><code class="plaintext">Uncaught exception from user code:
        Cannot fwiddle the fwuddle at -e line 1.
        main::baz() called at -e line 1
        main::bar() called at -e line 1
        main::foo() called at -e line 1</code></pre>

</li>
<li><p>Some error messages consist of multiple lines that are listed as separate entries in <a href="perldiag.html">perldiag</a>. splain has been taught to find the separate entries in these cases, instead of simply failing to find the message.</p>

</li>
</ul>

<h3 id="zipdetails"><a class="permalink" href="perl5160delta.html#zipdetails">#</a><a href="zipdetails.html">zipdetails</a></h3>

<ul>

<li><p>This is a new utility, included as part of an <a href="./IO::Compress::Base.html">IO::Compress::Base</a> upgrade.</p>

<p><a href="zipdetails.html">zipdetails</a> displays information about the internal record structure of the zip file. It is not concerned with displaying any details of the compressed data stored in the zip file.</p>

</li>
</ul>

<h1 id="Configuration-and-Compilation"><a class="permalink" href="perl5160delta.html#Configuration-and-Compilation">#</a><a id="Configuration"></a>Configuration and Compilation</h1>

<ul>

<li><p><i>regexp.h</i> has been modified for compatibility with GCC&#39;s <b>-Werror</b> option, as used by some projects that include perl&#39;s header files (5.14.1).</p>

</li>
<li><p><code>USE_LOCALE{,_COLLATE,_CTYPE,_NUMERIC}</code> have been added the output of perl -V as they have affect the behavior of the interpreter binary (albeit in only a small area).</p>

</li>
<li><p>The code and tests for <a href="./IPC::Open2.html">IPC::Open2</a> have been moved from <i>ext/IPC-Open2</i> into <i>ext/IPC-Open3</i>, as <code>IPC::Open2::open2()</code> is implemented as a thin wrapper around <code>IPC::Open3::_open3()</code>, and hence is very tightly coupled to it.</p>

</li>
<li><p>The magic types and magic vtables are now generated from data in a new script <i>regen/mg_vtable.pl</i>, instead of being maintained by hand. As different EBCDIC variants can&#39;t agree on the code point for &#39;~&#39;, the character to code point conversion is done at build time by <i>generate_uudmap</i> to a new generated header <i>mg_data.h</i>. <code>PL_vtbl_bm</code> and <code>PL_vtbl_fm</code> are now defined by the pre-processor as <code>PL_vtbl_regexp</code>, instead of being distinct C variables. <code>PL_vtbl_sig</code> has been removed.</p>

</li>
<li><p>Building with <code>-DPERL_GLOBAL_STRUCT</code> works again. This configuration is not generally used.</p>

</li>
<li><p>Perl configured with <i>MAD</i> now correctly frees <code>MADPROP</code> structures when OPs are freed. <code>MADPROP</code>s are now allocated with <code>PerlMemShared_malloc()</code></p>

</li>
<li><p><i>makedef.pl</i> has been refactored. This should have no noticeable affect on any of the platforms that use it as part of their build (AIX, VMS, Win32).</p>

</li>
<li><p><code>useperlio</code> can no longer be disabled.</p>

</li>
<li><p>The file <i>global.sym</i> is no longer needed, and has been removed. It contained a list of all exported functions, one of the files generated by <i>regen/embed.pl</i> from data in <i>embed.fnc</i> and <i>regen/opcodes</i>. The code has been refactored so that the only user of <i>global.sym</i>, <i>makedef.pl</i>, now reads <i>embed.fnc</i> and <i>regen/opcodes</i> directly, removing the need to store the list of exported functions in an intermediate file.</p>

<p>As <i>global.sym</i> was never installed, this change should not be visible outside the build process.</p>

</li>
<li><p><i>pod/buildtoc</i>, used by the build process to build <a href="perltoc.html">perltoc</a>, has been refactored and simplified. It now contains only code to build <a href="perltoc.html">perltoc</a>; the code to regenerate Makefiles has been moved to <i>Porting/pod_rules.pl</i>. It&#39;s a bug if this change has any material effect on the build process.</p>

</li>
<li><p><i>pod/roffitall</i> is now built by <i>pod/buildtoc</i>, instead of being shipped with the distribution. Its list of manpages is now generated (and therefore current). See also RT #103202 for an unresolved related issue.</p>

</li>
<li><p>The man page for <code>XS::Typemap</code> is no longer installed. <code>XS::Typemap</code> is a test module which is not installed, hence installing its documentation makes no sense.</p>

</li>
<li><p>The -Dusesitecustomize and -Duserelocatableinc options now work together properly.</p>

</li>
</ul>

<h1 id="Platform-Support"><a class="permalink" href="perl5160delta.html#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1>

<h2 id="Platform-Specific-Notes"><a class="permalink" href="perl5160delta.html#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2>

<h3 id="Cygwin"><a class="permalink" href="perl5160delta.html#Cygwin">#</a>Cygwin</h3>

<ul>

<li><p>Since version 1.7, Cygwin supports native UTF-8 paths. If Perl is built under that environment, directory and filenames will be UTF-8 encoded.</p>

</li>
<li><p>Cygwin does not initialize all original Win32 environment variables. See <i>README.cygwin</i> for a discussion of the newly-added <code>Cygwin::sync_winenv()</code> function [perl #110190] and for further links.</p>

</li>
</ul>

<h3 id="HP-UX"><a class="permalink" href="perl5160delta.html#HP-UX">#</a><a id="HP"></a>HP-UX</h3>

<ul>

<li><p>HP-UX PA-RISC/64 now supports gcc-4.x</p>

<p>A fix to correct the socketsize now makes the test suite pass on HP-UX PA-RISC for 64bitall builds. (5.14.2)</p>

</li>
</ul>

<h3 id="VMS"><a class="permalink" href="perl5160delta.html#VMS">#</a>VMS</h3>

<ul>

<li><p>Remove unnecessary includes, fix miscellaneous compiler warnings and close some unclosed comments on <i>vms/vms.c</i>.</p>

</li>
<li><p>Remove sockadapt layer from the VMS build.</p>

</li>
<li><p>Explicit support for VMS versions before v7.0 and DEC C versions before v6.0 has been removed.</p>

</li>
<li><p>Since Perl 5.10.1, the home-grown <code>stat</code> wrapper has been unable to distinguish between a directory name containing an underscore and an otherwise-identical filename containing a dot in the same position (e.g., t/test_pl as a directory and t/test.pl as a file). This problem has been corrected.</p>

</li>
<li><p>The build on VMS now permits names of the resulting symbols in C code for Perl longer than 31 characters. Symbols like <code>Perl__it_was_the_best_of_times_it_was_the_worst_of_times</code> can now be created freely without causing the VMS linker to seize up.</p>

</li>
</ul>

<h3 id="GNU/Hurd"><a class="permalink" href="perl5160delta.html#GNU/Hurd">#</a><a id="GNU"></a><a id="GNU-Hurd"></a>GNU/Hurd</h3>

<ul>

<li><p>Numerous build and test failures on GNU/Hurd have been resolved with hints for building DBM modules, detection of the library search path, and enabling of large file support.</p>

</li>
</ul>

<h3 id="OpenVOS"><a class="permalink" href="perl5160delta.html#OpenVOS">#</a>OpenVOS</h3>

<ul>

<li><p>Perl is now built with dynamic linking on OpenVOS, the minimum supported version of which is now Release 17.1.0.</p>

</li>
</ul>

<h3 id="SunOS"><a class="permalink" href="perl5160delta.html#SunOS">#</a>SunOS</h3>

<p>The CC workshop C++ compiler is now detected and used on systems that ship without cc.</p>

<h1 id="Internal-Changes"><a class="permalink" href="perl5160delta.html#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1>

<ul>

<li><p>The compiled representation of formats is now stored via the <code>mg_ptr</code> of their <code>PERL_MAGIC_fm</code>. Previously it was stored in the string buffer, beyond <code>SvLEN()</code>, the regular end of the string. <code>SvCOMPILED()</code> and <code>SvCOMPILED_{on,off}()</code> now exist solely for compatibility for XS code. The first is always 0, the other two now no-ops. (5.14.1)</p>

</li>
<li><p>Some global variables have been marked <code>const</code>, members in the interpreter structure have been re-ordered, and the opcodes have been re-ordered. The op <code>OP_AELEMFAST</code> has been split into <code>OP_AELEMFAST</code> and <code>OP_AELEMFAST_LEX</code>.</p>

</li>
<li><p>When empting a hash of its elements (e.g., via undef(%h), or %h=()), HvARRAY field is no longer temporarily zeroed. Any destructors called on the freed elements see the remaining elements. Thus, %h=() becomes more like <code>delete $h{$_} for keys %h</code>.</p>

</li>
<li><p>Boyer-Moore compiled scalars are now PVMGs, and the Boyer-Moore tables are now stored via the mg_ptr of their <code>PERL_MAGIC_bm</code>. Previously they were PVGVs, with the tables stored in the string buffer, beyond <code>SvLEN()</code>. This eliminates the last place where the core stores data beyond <code>SvLEN()</code>.</p>

</li>
<li><p>Simplified logic in <code>Perl_sv_magic()</code> introduces a small change of behavior for error cases involving unknown magic types. Previously, if <code>Perl_sv_magic()</code> was passed a magic type unknown to it, it would</p>

<ol>

<li><p>Croak &quot;Modification of a read-only value attempted&quot; if read only</p>

</li>
<li><p>Return without error if the SV happened to already have this magic</p>

</li>
<li><p>otherwise croak &quot;Don&#39;t know how to handle magic of type \\%o&quot;</p>

</li>
</ol>

<p>Now it will always croak &quot;Don&#39;t know how to handle magic of type \\%o&quot;, even on read-only values, or SVs which already have the unknown magic type.</p>

</li>
<li><p>The experimental <code>fetch_cop_label</code> function has been renamed to <code>cop_fetch_label</code>.</p>

</li>
<li><p>The <code>cop_store_label</code> function has been added to the API, but is experimental.</p>

</li>
<li><p><i>embedvar.h</i> has been simplified, and one level of macro indirection for PL_* variables has been removed for the default (non-multiplicity) configuration. PERLVAR*() macros now directly expand their arguments to tokens such as <code>PL_defgv</code>, instead of expanding to <code>PL_Idefgv</code>, with <i>embedvar.h</i> defining a macro to map <code>PL_Idefgv</code> to <code>PL_defgv</code>. XS code which has unwarranted chumminess with the implementation may need updating.</p>

</li>
<li><p>An API has been added to explicitly choose whether to export XSUB symbols. More detail can be found in the comments for commit e64345f8.</p>

</li>
<li><p>The <code>is_gv_magical_sv</code> function has been eliminated and merged with <code>gv_fetchpvn_flags</code>. It used to be called to determine whether a GV should be autovivified in rvalue context. Now it has been replaced with a new <code>GV_ADDMG</code> flag (not part of the API).</p>

</li>
<li><p>The returned code point from the function <code>utf8n_to_uvuni()</code> when the input is malformed UTF-8, malformations are allowed, and <code>utf8</code> warnings are off is now the Unicode REPLACEMENT CHARACTER whenever the malformation is such that no well-defined code point can be computed. Previously the returned value was essentially garbage. The only malformations that have well-defined values are a zero-length string (0 is the return), and overlong UTF-8 sequences.</p>

</li>
<li><p>Padlists are now marked <code>AvREAL</code>; i.e., reference-counted. They have always been reference-counted, but were not marked real, because <i>pad.c</i> did its own clean-up, instead of using the usual clean-up code in <i>sv.c</i>. That caused problems in thread cloning, so now the <code>AvREAL</code> flag is on, but is turned off in <i>pad.c</i> right before the padlist is freed (after <i>pad.c</i> has done its custom freeing of the pads).</p>

</li>
<li><p>All C files that make up the Perl core have been converted to UTF-8.</p>

</li>
<li><p>These new functions have been added as part of the work on Unicode symbols:</p>

<pre><code class="plaintext">HvNAMELEN
HvNAMEUTF8
HvENAMELEN
HvENAMEUTF8
gv_init_pv
gv_init_pvn
gv_init_pvsv
gv_fetchmeth_pv
gv_fetchmeth_pvn
gv_fetchmeth_sv
gv_fetchmeth_pv_autoload
gv_fetchmeth_pvn_autoload
gv_fetchmeth_sv_autoload
gv_fetchmethod_pv_flags
gv_fetchmethod_pvn_flags
gv_fetchmethod_sv_flags
gv_autoload_pv
gv_autoload_pvn
gv_autoload_sv
newGVgen_flags
sv_derived_from_pv
sv_derived_from_pvn
sv_derived_from_sv
sv_does_pv
sv_does_pvn
sv_does_sv
whichsig_pv
whichsig_pvn
whichsig_sv
newCONSTSUB_flags</code></pre>

<p>The gv_fetchmethod_*_flags functions, like gv_fetchmethod_flags, are experimental and may change in a future release.</p>

</li>
<li><p>The following functions were added. These are <i>not</i> part of the API:</p>

<pre><code class="plaintext">GvNAMEUTF8
GvENAMELEN
GvENAME_HEK
CopSTASH_flags
CopSTASH_flags_set
PmopSTASH_flags
PmopSTASH_flags_set
sv_sethek
HEKfARG</code></pre>

<p>There is also a <code>HEKf</code> macro corresponding to <code>SVf</code>, for interpolating HEKs in formatted strings.</p>

</li>
<li><p><code>sv_catpvn_flags</code> takes a couple of new internal-only flags, <code>SV_CATBYTES</code> and <code>SV_CATUTF8</code>, which tell it whether the char array to be concatenated is UTF8. This allows for more efficient concatenation than creating temporary SVs to pass to <code>sv_catsv</code>.</p>

</li>
<li><p>For XS AUTOLOAD subs, $AUTOLOAD is set once more, as it was in 5.6.0. This is in addition to setting <code>SvPVX(cv)</code>, for compatibility with 5.8 to 5.14. See <a href="perlguts.html#Autoloading-with-XSUBs">&quot;Autoloading with XSUBs&quot; in perlguts</a>.</p>

</li>
<li><p>Perl now checks whether the array (the linearized isa) returned by a MRO plugin begins with the name of the class itself, for which the array was created, instead of assuming that it does. This prevents the first element from being skipped during method lookup. It also means that <code>mro::get_linear_isa</code> may return an array with one more element than the MRO plugin provided [perl #94306].</p>

</li>
<li><p><code>PL_curstash</code> is now reference-counted.</p>

</li>
<li><p>There are now feature bundle hints in <code>PL_hints</code> (<code>$^H</code>) that version declarations use, to avoid having to load <i>feature.pm</i>. One setting of the hint bits indicates a &quot;custom&quot; feature bundle, which means that the entries in <code>%^H</code> still apply. <i>feature.pm</i> uses that.</p>

<p>The <code>HINT_FEATURE_MASK</code> macro is defined in <i>perl.h</i> along with other hints. Other macros for setting and testing features and bundles are in the new <i>feature.h</i>. <code>FEATURE_IS_ENABLED</code> (which has moved to <i>feature.h</i>) is no longer used throughout the codebase, but more specific macros, e.g., <code>FEATURE_SAY_IS_ENABLED</code>, that are defined in <i>feature.h</i>.</p>

</li>
<li><p><i>lib/feature.pm</i> is now a generated file, created by the new <i>regen/feature.pl</i> script, which also generates <i>feature.h</i>.</p>

</li>
<li><p>Tied arrays are now always <code>AvREAL</code>. If <code>@_</code> or <code>DB::args</code> is tied, it is reified first, to make sure this is always the case.</p>

</li>
<li><p>Two new functions <code>utf8_to_uvchr_buf()</code> and <code>utf8_to_uvuni_buf()</code> have been added. These are the same as <code>utf8_to_uvchr</code> and <code>utf8_to_uvuni</code> (which are now deprecated), but take an extra parameter that is used to guard against reading beyond the end of the input string. See <a href="perlapi.html#utf8_to_uvchr_buf">&quot;utf8_to_uvchr_buf&quot; in perlapi</a> and <a href="perlapi.html#utf8_to_uvuni_buf">&quot;utf8_to_uvuni_buf&quot; in perlapi</a>.</p>

</li>
<li><p>The regular expression engine now does TRIE case insensitive matches under Unicode. This may change the output of <code>use re &#39;debug&#39;;</code>, and will speed up various things.</p>

</li>
<li><p>There is a new <code>wrap_op_checker()</code> function, which provides a thread-safe alternative to writing to <code>PL_check</code> directly.</p>

</li>
</ul>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl5160delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<h2 id="Array-and-hash"><a class="permalink" href="perl5160delta.html#Array-and-hash">#</a><a id="Array"></a>Array and hash</h2>

<ul>

<li><p>A bug has been fixed that would cause a &quot;Use of freed value in iteration&quot; error if the next two hash elements that would be iterated over are deleted [perl #85026]. (5.14.1)</p>

</li>
<li><p>Deleting the current hash iterator (the hash element that would be returned by the next call to <code>each</code>) in void context used not to free it [perl #85026].</p>

</li>
<li><p>Deletion of methods via <code>delete $Class::{method}</code> syntax used to update method caches if called in void context, but not scalar or list context.</p>

</li>
<li><p>When hash elements are deleted in void context, the internal hash entry is now freed before the value is freed, to prevent destructors called by that latter freeing from seeing the hash in an inconsistent state. It was possible to cause double-frees if the destructor freed the hash itself [perl #100340].</p>

</li>
<li><p>A <code>keys</code> optimization in Perl 5.12.0 to make it faster on empty hashes caused <code>each</code> not to reset the iterator if called after the last element was deleted.</p>

</li>
<li><p>Freeing deeply nested hashes no longer crashes [perl #44225].</p>

</li>
<li><p>It is possible from XS code to create hashes with elements that have no values. The hash element and slice operators used to crash when handling these in lvalue context. They now produce a &quot;Modification of non-creatable hash value attempted&quot; error message.</p>

</li>
<li><p>If list assignment to a hash or array triggered destructors that freed the hash or array itself, a crash would ensue. This is no longer the case [perl #107440].</p>

</li>
<li><p>It used to be possible to free the typeglob of a localized array or hash (e.g., <code>local @{&quot;x&quot;}; delete $::{x}</code>), resulting in a crash on scope exit.</p>

</li>
<li><p>Some core bugs affecting <a href="./Hash::Util.html">Hash::Util</a> have been fixed: locking a hash element that is a glob copy no longer causes the next assignment to it to corrupt the glob (5.14.2), and unlocking a hash element that holds a copy-on-write scalar no longer causes modifications to that scalar to modify other scalars that were sharing the same string buffer.</p>

</li>
</ul>

<h2 id="C-API-fixes"><a class="permalink" href="perl5160delta.html#C-API-fixes">#</a><a id="C"></a>C API fixes</h2>

<ul>

<li><p>The <code>newHVhv</code> XS function now works on tied hashes, instead of crashing or returning an empty hash.</p>

</li>
<li><p>The <code>SvIsCOW</code> C macro now returns false for read-only copies of typeglobs, such as those created by:</p>

<pre><code>$hash{elem} = *foo;
Hash::Util::lock_value %hash, &#39;elem&#39;;</code></pre>

<p>It used to return true.</p>

</li>
<li><p>The <code>SvPVutf8</code> C function no longer tries to modify its argument, resulting in errors [perl #108994].</p>

</li>
<li><p><code>SvPVutf8</code> now works properly with magical variables.</p>

</li>
<li><p><code>SvPVbyte</code> now works properly non-PVs.</p>

</li>
<li><p>When presented with malformed UTF-8 input, the XS-callable functions <code>is_utf8_string()</code>, <code>is_utf8_string_loc()</code>, and <code>is_utf8_string_loclen()</code> could read beyond the end of the input string by up to 12 bytes. This no longer happens. [perl #32080]. However, currently, <code>is_utf8_char()</code> still has this defect, see <a href="perl5160delta.html#is_utf8_char%28%29">&quot;is_utf8_char()&quot;</a> above.</p>

</li>
<li><p>The C-level <code>pregcomp</code> function could become confused about whether the pattern was in UTF8 if the pattern was an overloaded, tied, or otherwise magical scalar [perl #101940].</p>

</li>
</ul>

<h2 id="Compile-time-hints"><a class="permalink" href="perl5160delta.html#Compile-time-hints">#</a><a id="Compile"></a>Compile-time hints</h2>

<ul>

<li><p>Tying <code>%^H</code> no longer causes perl to crash or ignore the contents of <code>%^H</code> when entering a compilation scope [perl #106282].</p>

</li>
<li><p><code>eval $string</code> and <code>require</code> used not to localize <code>%^H</code> during compilation if it was empty at the time the <code>eval</code> call itself was compiled. This could lead to scary side effects, like <code>use re &quot;/m&quot;</code> enabling other flags that the surrounding code was trying to enable for its caller [perl #68750].</p>

</li>
<li><p><code>eval $string</code> and <code>require</code> no longer localize hints (<code>$^H</code> and <code>%^H</code>) at run time, but only during compilation of the $string or required file. This makes <code>BEGIN { $^H{foo}=7 }</code> equivalent to <code>BEGIN { eval &#39;$^H{foo}=7&#39; }</code> [perl #70151].</p>

</li>
<li><p>Creating a BEGIN block from XS code (via <code>newXS</code> or <code>newATTRSUB</code>) would, on completion, make the hints of the current compiling code the current hints. This could cause warnings to occur in a non-warning scope.</p>

</li>
</ul>

<h2 id="Copy-on-write-scalars"><a class="permalink" href="perl5160delta.html#Copy-on-write-scalars">#</a><a id="Copy"></a>Copy-on-write scalars</h2>

<p>Copy-on-write or shared hash key scalars were introduced in 5.8.0, but most Perl code did not encounter them (they were used mostly internally). Perl 5.10.0 extended them, such that assigning <code>__PACKAGE__</code> or a hash key to a scalar would make it copy-on-write. Several parts of Perl were not updated to account for them, but have now been fixed.</p>

<ul>

<li><p><code>utf8::decode</code> had a nasty bug that would modify copy-on-write scalars&#39; string buffers in place (i.e., skipping the copy). This could result in hashes having two elements with the same key [perl #91834]. (5.14.2)</p>

</li>
<li><p>Lvalue subroutines were not allowing COW scalars to be returned. This was fixed for lvalue scalar context in Perl 5.12.3 and 5.14.0, but list context was not fixed until this release.</p>

</li>
<li><p>Elements of restricted hashes (see the <a href="fields.html">fields</a> pragma) containing copy-on-write values couldn&#39;t be deleted, nor could such hashes be cleared (<code>%hash = ()</code>). (5.14.2)</p>

</li>
<li><p>Localizing a tied variable used to make it read-only if it contained a copy-on-write string. (5.14.2)</p>

</li>
<li><p>Assigning a copy-on-write string to a stash element no longer causes a double free. Regardless of this change, the results of such assignments are still undefined.</p>

</li>
<li><p>Assigning a copy-on-write string to a tied variable no longer stops that variable from being tied if it happens to be a PVMG or PVLV internally.</p>

</li>
<li><p>Doing a substitution on a tied variable returning a copy-on-write scalar used to cause an assertion failure or an &quot;Attempt to free nonexistent shared string&quot; warning.</p>

</li>
<li><p>This one is a regression from 5.12: In 5.14.0, the bitwise assignment operators <code>|=</code>, <code>^=</code> and <code>&amp;=</code> started leaving the left-hand side undefined if it happened to be a copy-on-write string [perl #108480].</p>

</li>
<li><p><a href="Storable.html">Storable</a>, <a href="./Devel::Peek.html">Devel::Peek</a> and <a href="./PerlIO::scalar.html">PerlIO::scalar</a> had similar problems. See <a href="perl5160delta.html#Updated-Modules-and-Pragmata">&quot;Updated Modules and Pragmata&quot;</a>, above.</p>

</li>
</ul>

<h2 id="The-debugger"><a class="permalink" href="perl5160delta.html#The-debugger">#</a><a id="The5"></a>The debugger</h2>

<ul>

<li><p><i>dumpvar.pl</i>, and therefore the <code>x</code> command in the debugger, have been fixed to handle objects blessed into classes whose names contain &quot;=&quot;. The contents of such objects used not to be dumped [perl #101814].</p>

</li>
<li><p>The &quot;R&quot; command for restarting a debugger session has been fixed to work on Windows, or any other system lacking a <code>POSIX::_SC_OPEN_MAX</code> constant [perl #87740].</p>

</li>
<li><p>The <code>#line 42 foo</code> directive used not to update the arrays of lines used by the debugger if it occurred in a string eval. This was partially fixed in 5.14, but it worked only for a single <code>#line 42 foo</code> in each eval. Now it works for multiple.</p>

</li>
<li><p>When subroutine calls are intercepted by the debugger, the name of the subroutine or a reference to it is stored in <code>$DB::sub</code>, for the debugger to access. Sometimes (such as <code>$foo = *bar; undef *bar; &amp;$foo</code>) <code>$DB::sub</code> would be set to a name that could not be used to find the subroutine, and so the debugger&#39;s attempt to call it would fail. Now the check to see whether a reference is needed is more robust, so those problems should not happen anymore [rt.cpan.org #69862].</p>

</li>
<li><p>Every subroutine has a filename associated with it that the debugger uses. The one associated with constant subroutines used to be misallocated when cloned under threads. Consequently, debugging threaded applications could result in memory corruption [perl #96126].</p>

</li>
</ul>

<h2 id="Dereferencing-operators"><a class="permalink" href="perl5160delta.html#Dereferencing-operators">#</a><a id="Dereferencing1"></a>Dereferencing operators</h2>

<ul>

<li><p><code>defined(${&quot;...&quot;})</code>, <code>defined(*{&quot;...&quot;})</code>, etc., used to return true for most, but not all built-in variables, if they had not been used yet. This bug affected <code>${^GLOBAL_PHASE}</code> and <code>${^UTF8CACHE}</code>, among others. It also used to return false if the package name was given as well (<code>${&quot;::!&quot;}</code>) [perl #97978, #97492].</p>

</li>
<li><p>Perl 5.10.0 introduced a similar bug: <code>defined(*{&quot;foo&quot;})</code> where &quot;foo&quot; represents the name of a built-in global variable used to return false if the variable had never been used before, but only on the <i>first</i> call. This, too, has been fixed.</p>

</li>
<li><p>Since 5.6.0, <code>*{ ... }</code> has been inconsistent in how it treats undefined values. It would die in strict mode or lvalue context for most undefined values, but would be treated as the empty string (with a warning) for the specific scalar return by <code>undef()</code> (<code>&amp;PL_sv_undef</code> internally). This has been corrected. <code>undef()</code> is now treated like other undefined scalars, as in Perl 5.005.</p>

</li>
</ul>

<h2 id="Filehandle,-last-accessed"><a class="permalink" href="perl5160delta.html#Filehandle,-last-accessed">#</a><a id="Filehandle"></a><a id="Filehandle-last-accessed"></a>Filehandle, last-accessed</h2>

<p>Perl has an internal variable that stores the last filehandle to be accessed. It is used by <code>$.</code> and by <code>tell</code> and <code>eof</code> without arguments.</p>

<ul>

<li><p>It used to be possible to set this internal variable to a glob copy and then modify that glob copy to be something other than a glob, and still have the last-accessed filehandle associated with the variable after assigning a glob to it again:</p>

<pre><code>my $foo = *STDOUT;  # $foo is a glob copy
&lt;$foo&gt;;             # $foo is now the last-accessed handle
$foo = 3;           # no longer a glob
$foo = *STDERR;     # still the last-accessed handle</code></pre>

<p>Now the <code>$foo = 3</code> assignment unsets that internal variable, so there is no last-accessed filehandle, just as if <code>&lt;$foo&gt;</code> had never happened.</p>

<p>This also prevents some unrelated handle from becoming the last-accessed handle if $foo falls out of scope and the same internal SV gets used for another handle [perl #97988].</p>

</li>
<li><p>A regression in 5.14 caused these statements not to set that internal variable:</p>

<pre><code>my $fh = *STDOUT;
tell $fh;
eof  $fh;
seek $fh, 0,0;
tell     *$fh;
eof      *$fh;
seek     *$fh, 0,0;
readline *$fh;</code></pre>

<p>This is now fixed, but <code>tell *{ *$fh }</code> still has the problem, and it is not clear how to fix it [perl #106536].</p>

</li>
</ul>

<h2 id="Filetests-and-stat"><a class="permalink" href="perl5160delta.html#Filetests-and-stat">#</a><a id="Filetests"></a>Filetests and <code>stat</code></h2>

<p>The term &quot;filetests&quot; refers to the operators that consist of a hyphen followed by a single letter: <code>-r</code>, <code>-x</code>, <code>-M</code>, etc. The term &quot;stacked&quot; when applied to filetests means followed by another filetest operator sharing the same operand, as in <code>-r -x -w $fooo</code>.</p>

<ul>

<li><p><code>stat</code> produces more consistent warnings. It no longer warns for &quot;_&quot; [perl #71002] and no longer skips the warning at times for other unopened handles. It no longer warns about an unopened handle when the operating system&#39;s <code>fstat</code> function fails.</p>

</li>
<li><p><code>stat</code> would sometimes return negative numbers for large inode numbers, because it was using the wrong internal C type. [perl #84590]</p>

</li>
<li><p><code>lstat</code> is documented to fall back to <code>stat</code> (with a warning) when given a filehandle. When passed an IO reference, it was actually doing the equivalent of <span style="white-space: nowrap;"><code>stat _</code></span> and ignoring the handle.</p>

</li>
<li><p><code>-T _</code> with no preceding <code>stat</code> used to produce a confusing &quot;uninitialized&quot; warning, even though there is no visible uninitialized value to speak of.</p>

</li>
<li><p><code>-T</code>, <code>-B</code>, <code>-l</code> and <code>-t</code> now work when stacked with other filetest operators [perl #77388].</p>

</li>
<li><p>In 5.14.0, filetest ops (<code>-r</code>, <code>-x</code>, etc.) started calling FETCH on a tied argument belonging to the previous argument to a list operator, if called with a bareword argument or no argument at all. This has been fixed, so <code>push @foo, $tied, -r</code> no longer calls FETCH on <code>$tied</code>.</p>

</li>
<li><p>In Perl 5.6, <code>-l</code> followed by anything other than a bareword would treat its argument as a file name. That was changed in 5.8 for glob references (<code>\*foo</code>), but not for globs themselves (<code>*foo</code>). <code>-l</code> started returning <code>undef</code> for glob references without setting the last stat buffer that the &quot;_&quot; handle uses, but only if warnings were turned on. With warnings off, it was the same as 5.6. In other words, it was simply buggy and inconsistent. Now the 5.6 behavior has been restored.</p>

</li>
<li><p><code>-l</code> followed by a bareword no longer &quot;eats&quot; the previous argument to the list operator in whose argument list it resides. Hence, <code>print &quot;bar&quot;, -l foo</code> now actually prints &quot;bar&quot;, because <code>-l</code> on longer eats it.</p>

</li>
<li><p>Perl keeps several internal variables to keep track of the last stat buffer, from which file(handle) it originated, what type it was, and whether the last stat succeeded.</p>

<p>There were various cases where these could get out of synch, resulting in inconsistent or erratic behavior in edge cases (every mention of <code>-T</code> applies to <code>-B</code> as well):</p>

<ul>

<li><p><code>-T <i>HANDLE</i></code>, even though it does a <code>stat</code>, was not resetting the last stat type, so an <code>lstat _</code> following it would merrily return the wrong results. Also, it was not setting the success status.</p>

</li>
<li><p>Freeing the handle last used by <code>stat</code> or a filetest could result in <span style="white-space: nowrap;"><code>-T _</code></span> using an unrelated handle.</p>

</li>
<li><p><code>stat</code> with an IO reference would not reset the stat type or record the filehandle for <span style="white-space: nowrap;"><code>-T _</code></span> to use.</p>

</li>
<li><p>Fatal warnings could cause the stat buffer not to be reset for a filetest operator on an unopened filehandle or <code>-l</code> on any handle. Fatal warnings also stopped <code>-T</code> from setting <code>$!</code>.</p>

</li>
<li><p>When the last stat was on an unreadable file, <code>-T _</code> is supposed to return <code>undef</code>, leaving the last stat buffer unchanged. But it was setting the stat type, causing <code>lstat _</code> to stop working.</p>

</li>
<li><p><code>-T <i>FILENAME</i></code> was not resetting the internal stat buffers for unreadable files.</p>

</li>
</ul>

<p>These have all been fixed.</p>

</li>
</ul>

<h2 id="Formats"><a class="permalink" href="perl5160delta.html#Formats">#</a>Formats</h2>

<ul>

<li><p>Several edge cases have been fixed with formats and <code>formline</code>; in particular, where the format itself is potentially variable (such as with ties and overloading), and where the format and data differ in their encoding. In both these cases, it used to possible for the output to be corrupted [perl #91032].</p>

</li>
<li><p><code>formline</code> no longer converts its argument into a string in-place. So passing a reference to <code>formline</code> no longer destroys the reference [perl #79532].</p>

</li>
<li><p>Assignment to <code>$^A</code> (the format output accumulator) now recalculates the number of lines output.</p>

</li>
</ul>

<h2 id="given-and-when"><a class="permalink" href="perl5160delta.html#given-and-when">#</a><a id="given"></a><code>given</code> and <code>when</code></h2>

<ul>

<li><p><code>given</code> was not scoping its implicit $_ properly, resulting in memory leaks or &quot;Variable is not available&quot; warnings [perl #94682].</p>

</li>
<li><p><code>given</code> was not calling set-magic on the implicit lexical <code>$_</code> that it uses. This meant, for example, that <code>pos</code> would be remembered from one execution of the same <code>given</code> block to the next, even if the input were a different variable [perl #84526].</p>

</li>
<li><p><code>when</code> blocks are now capable of returning variables declared inside the enclosing <code>given</code> block [perl #93548].</p>

</li>
</ul>

<h2 id="The-glob-operator"><a class="permalink" href="perl5160delta.html#The-glob-operator">#</a><a id="The6"></a>The <code>glob</code> operator</h2>

<ul>

<li><p>On OSes other than VMS, Perl&#39;s <code>glob</code> operator (and the <code>&lt;...&gt;</code> form) use <a href="./File::Glob.html">File::Glob</a> underneath. <a href="./File::Glob.html">File::Glob</a> splits the pattern into words, before feeding each word to its <code>bsd_glob</code> function.</p>

<p>There were several inconsistencies in the way the split was done. Now quotation marks (&#39; and &quot;) are always treated as shell-style word delimiters (that allow whitespace as part of a word) and backslashes are always preserved, unless they exist to escape quotation marks. Before, those would only sometimes be the case, depending on whether the pattern contained whitespace. Also, escaped whitespace at the end of the pattern is no longer stripped [perl #40470].</p>

</li>
<li><p><code>CORE::glob</code> now works as a way to call the default globbing function. It used to respect overrides, despite the <code>CORE::</code> prefix.</p>

</li>
<li><p>Under miniperl (used to configure modules when perl itself is built), <code>glob</code> now clears %ENV before calling csh, since the latter croaks on some systems if it does not like the contents of the LS_COLORS environment variable [perl #98662].</p>

</li>
</ul>

<h2 id="Lvalue-subroutines"><a class="permalink" href="perl5160delta.html#Lvalue-subroutines">#</a><a id="Lvalue"></a>Lvalue subroutines</h2>

<ul>

<li><p>Explicit return now returns the actual argument passed to return, instead of copying it [perl #72724, #72706].</p>

</li>
<li><p>Lvalue subroutines used to enforce lvalue syntax (i.e., whatever can go on the left-hand side of <code>=</code>) for the last statement and the arguments to return. Since lvalue subroutines are not always called in lvalue context, this restriction has been lifted.</p>

</li>
<li><p>Lvalue subroutines are less restrictive about what values can be returned. It used to croak on values returned by <code>shift</code> and <code>delete</code> and from other subroutines, but no longer does so [perl #71172].</p>

</li>
<li><p>Empty lvalue subroutines (<code>sub :lvalue {}</code>) used to return <code>@_</code> in list context. All subroutines used to do this, but regular subs were fixed in Perl 5.8.2. Now lvalue subroutines have been likewise fixed.</p>

</li>
<li><p>Autovivification now works on values returned from lvalue subroutines [perl #7946], as does returning <code>keys</code> in lvalue context.</p>

</li>
<li><p>Lvalue subroutines used to copy their return values in rvalue context. Not only was this a waste of CPU cycles, but it also caused bugs. A <code>($)</code> prototype would cause an lvalue sub to copy its return value [perl #51408], and <code>while(lvalue_sub() =~ m/.../g) { ... }</code> would loop endlessly [perl #78680].</p>

</li>
<li><p>When called in potential lvalue context (e.g., subroutine arguments or a list passed to <code>for</code>), lvalue subroutines used to copy any read-only value that was returned. E.g., <code> sub :lvalue { $] } </code> would not return <code>$]</code>, but a copy of it.</p>

</li>
<li><p>When called in potential lvalue context, an lvalue subroutine returning arrays or hashes used to bind the arrays or hashes to scalar variables, resulting in bugs. This was fixed in 5.14.0 if an array were the first thing returned from the subroutine (but not for <code>$scalar, @array</code> or hashes being returned). Now a more general fix has been applied [perl #23790].</p>

</li>
<li><p>Method calls whose arguments were all surrounded with <code>my()</code> or <code>our()</code> (as in <code>$object-&gt;method(my($a,$b))</code>) used to force lvalue context on the subroutine. This would prevent lvalue methods from returning certain values.</p>

</li>
<li><p>Lvalue sub calls that are not determined to be such at compile time (<code>&amp;$name</code> or &amp;{&quot;name&quot;}) are no longer exempt from strict refs if they occur in the last statement of an lvalue subroutine [perl #102486].</p>

</li>
<li><p>Sub calls whose subs are not visible at compile time, if they occurred in the last statement of an lvalue subroutine, would reject non-lvalue subroutines and die with &quot;Can&#39;t modify non-lvalue subroutine call&quot; [perl #102486].</p>

<p>Non-lvalue sub calls whose subs <i>are</i> visible at compile time exhibited the opposite bug. If the call occurred in the last statement of an lvalue subroutine, there would be no error when the lvalue sub was called in lvalue context. Perl would blindly assign to the temporary value returned by the non-lvalue subroutine.</p>

</li>
<li><p><code>AUTOLOAD</code> routines used to take precedence over the actual sub being called (i.e., when autoloading wasn&#39;t needed), for sub calls in lvalue or potential lvalue context, if the subroutine was not visible at compile time.</p>

</li>
<li><p>Applying the <code>:lvalue</code> attribute to an XSUB or to an aliased subroutine stub with <code>sub foo :lvalue;</code> syntax stopped working in Perl 5.12. This has been fixed.</p>

</li>
<li><p>Applying the :lvalue attribute to subroutine that is already defined does not work properly, as the attribute changes the way the sub is compiled. Hence, Perl 5.12 began warning when an attempt is made to apply the attribute to an already defined sub. In such cases, the attribute is discarded.</p>

<p>But the change in 5.12 missed the case where custom attributes are also present: that case still silently and ineffectively applied the attribute. That omission has now been corrected. <code>sub foo :lvalue :Whatever</code> (when <code>foo</code> is already defined) now warns about the :lvalue attribute, and does not apply it.</p>

</li>
<li><p>A bug affecting lvalue context propagation through nested lvalue subroutine calls has been fixed. Previously, returning a value in nested rvalue context would be treated as lvalue context by the inner subroutine call, resulting in some values (such as read-only values) being rejected.</p>

</li>
</ul>

<h2 id="Overloading"><a class="permalink" href="perl5160delta.html#Overloading">#</a>Overloading</h2>

<ul>

<li><p>Arithmetic assignment (<code>$left += $right</code>) involving overloaded objects that rely on the &#39;nomethod&#39; override no longer segfault when the left operand is not overloaded.</p>

</li>
<li><p>Errors that occur when methods cannot be found during overloading now mention the correct package name, as they did in 5.8.x, instead of erroneously mentioning the &quot;overload&quot; package, as they have since 5.10.0.</p>

</li>
<li><p>Undefining <code>%overload::</code> no longer causes a crash.</p>

</li>
</ul>

<h2 id="Prototypes-of-built-in-keywords"><a class="permalink" href="perl5160delta.html#Prototypes-of-built-in-keywords">#</a><a id="Prototypes"></a>Prototypes of built-in keywords</h2>

<ul>

<li><p>The <code>prototype</code> function no longer dies for the <code>__FILE__</code>, <code>__LINE__</code> and <code>__PACKAGE__</code> directives. It now returns an empty-string prototype for them, because they are syntactically indistinguishable from nullary functions like <code>time</code>.</p>

</li>
<li><p><code>prototype</code> now returns <code>undef</code> for all overridable infix operators, such as <code>eq</code>, which are not callable in any way resembling functions. It used to return incorrect prototypes for some and die for others [perl #94984].</p>

</li>
<li><p>The prototypes of several built-in functions--<code>getprotobynumber</code>, <code>lock</code>, <code>not</code> and <code>select</code>--have been corrected, or at least are now closer to reality than before.</p>

</li>
</ul>

<h2 id="Regular-expressions"><a class="permalink" href="perl5160delta.html#Regular-expressions">#</a><a id="Regular"></a>Regular expressions</h2>

<ul>

<li><p><code>/[[:ascii:]]/</code> and <code>/[[:blank:]]/</code> now use locale rules under <code>use locale</code> when the platform supports that. Previously, they used the platform&#39;s native character set.</p>

</li>
<li><p><code>m/[[:ascii:]]/i</code> and <code>/\p{ASCII}/i</code> now match identically (when not under a differing locale). This fixes a regression introduced in 5.14 in which the first expression could match characters outside of ASCII, such as the KELVIN SIGN.</p>

</li>
<li><p><code>/.*/g</code> would sometimes refuse to match at the end of a string that ends with &quot;\n&quot;. This has been fixed [perl #109206].</p>

</li>
<li><p>Starting with 5.12.0, Perl used to get its internal bookkeeping muddled up after assigning <code>${ qr// }</code> to a hash element and locking it with <a href="./Hash::Util.html">Hash::Util</a>. This could result in double frees, crashes, or erratic behavior.</p>

</li>
<li><p>The new (in 5.14.0) regular expression modifier <code>/a</code> when repeated like <code>/aa</code> forbids the characters outside the ASCII range that match characters inside that range from matching under <code>/i</code>. This did not work under some circumstances, all involving alternation, such as:</p>

<pre><code>&quot;\N{KELVIN SIGN}&quot; =~ /k|foo/iaa;</code></pre>

<p>succeeded inappropriately. This is now fixed.</p>

</li>
<li><p>5.14.0 introduced some memory leaks in regular expression character classes such as <code>[\w\s]</code>, which have now been fixed. (5.14.1)</p>

</li>
<li><p>An edge case in regular expression matching could potentially loop. This happened only under <code>/i</code> in bracketed character classes that have characters with multi-character folds, and the target string to match against includes the first portion of the fold, followed by another character that has a multi-character fold that begins with the remaining portion of the fold, plus some more.</p>

<pre><code class="plaintext">&quot;s\N{U+DF}&quot; =~ /[\x{DF}foo]/i</code></pre>

<p>is one such case. <code>\xDF</code> folds to <code>&quot;ss&quot;</code>. (5.14.1)</p>

</li>
<li><p>A few characters in regular expression pattern matches did not match correctly in some circumstances, all involving <code>/i</code>. The affected characters are: COMBINING GREEK YPOGEGRAMMENI, GREEK CAPITAL LETTER IOTA, GREEK CAPITAL LETTER UPSILON, GREEK PROSGEGRAMMENI, GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA, GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS, GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA, GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS, LATIN SMALL LETTER LONG S, LATIN SMALL LIGATURE LONG S T, and LATIN SMALL LIGATURE ST.</p>

</li>
<li><p>A memory leak regression in regular expression compilation under threading has been fixed.</p>

</li>
<li><p>A regression introduced in 5.14.0 has been fixed. This involved an inverted bracketed character class in a regular expression that consisted solely of a Unicode property. That property wasn&#39;t getting inverted outside the Latin1 range.</p>

</li>
<li><p>Three problematic Unicode characters now work better in regex pattern matching under <code>/i</code>.</p>

<p>In the past, three Unicode characters: LATIN SMALL LETTER SHARP S, GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS, and GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS, along with the sequences that they fold to (including &quot;ss&quot; for LATIN SMALL LETTER SHARP S), did not properly match under <code>/i</code>. 5.14.0 fixed some of these cases, but introduced others, including a panic when one of the characters or sequences was used in the <code>(?(DEFINE)</code> regular expression predicate. The known bugs that were introduced in 5.14 have now been fixed; as well as some other edge cases that have never worked until now. These all involve using the characters and sequences outside bracketed character classes under <code>/i</code>. This closes [perl #98546].</p>

<p>There remain known problems when using certain characters with multi-character folds inside bracketed character classes, including such constructs as <code>qr/[\N{LATIN SMALL LETTER SHARP}a-z]/i</code>. These remaining bugs are addressed in [perl #89774].</p>

</li>
<li><p>RT #78266: The regex engine has been leaking memory when accessing named captures that weren&#39;t matched as part of a regex ever since 5.10 when they were introduced; e.g., this would consume over a hundred MB of memory:</p>

<pre><code>for (1..10_000_000) {
    if (&quot;foo&quot; =~ /(foo|(?&lt;capture&gt;bar))?/) {
        my $capture = $+{capture}
    }
}
system &quot;ps -o rss $$&quot;&#39;</code></pre>

</li>
<li><p>In 5.14, <code>/[[:lower:]]/i</code> and <code>/[[:upper:]]/i</code> no longer matched the opposite case. This has been fixed [perl #101970].</p>

</li>
<li><p>A regular expression match with an overloaded object on the right-hand side would sometimes stringify the object too many times.</p>

</li>
<li><p>A regression has been fixed that was introduced in 5.14, in <code>/i</code> regular expression matching, in which a match improperly fails if the pattern is in UTF-8, the target string is not, and a Latin-1 character precedes a character in the string that should match the pattern. [perl #101710]</p>

</li>
<li><p>In case-insensitive regular expression pattern matching, no longer on UTF-8 encoded strings does the scan for the start of match look only at the first possible position. This caused matches such as <code>&quot;f\x{FB00}&quot; =~ /ff/i</code> to fail.</p>

</li>
<li><p>The regexp optimizer no longer crashes on debugging builds when merging fixed-string nodes with inconvenient contents.</p>

</li>
<li><p>A panic involving the combination of the regular expression modifiers <code>/aa</code> and the <code>\b</code> escape sequence introduced in 5.14.0 has been fixed [perl #95964]. (5.14.2)</p>

</li>
<li><p>The combination of the regular expression modifiers <code>/aa</code> and the <code>\b</code> and <code>\B</code> escape sequences did not work properly on UTF-8 encoded strings. All non-ASCII characters under <code>/aa</code> should be treated as non-word characters, but what was happening was that Unicode rules were used to determine wordness/non-wordness for non-ASCII characters. This is now fixed [perl #95968].</p>

</li>
<li><p><code>(?foo: ...)</code> no longer loses passed in character set.</p>

</li>
<li><p>The trie optimization used to have problems with alternations containing an empty <code>(?:)</code>, causing <code>&quot;x&quot; =~ /\A(?&gt;(?:(?:)A|B|C?x))\z/</code> not to match, whereas it should [perl #111842].</p>

</li>
<li><p>Use of lexical (<code>my</code>) variables in code blocks embedded in regular expressions will no longer result in memory corruption or crashes.</p>

<p>Nevertheless, these code blocks are still experimental, as there are still problems with the wrong variables being closed over (in loops for instance) and with abnormal exiting (e.g., <code>die</code>) causing memory corruption.</p>

</li>
<li><p>The <code>\h</code>, <code>\H</code>, <code>\v</code> and <code>\V</code> regular expression metacharacters used to cause a panic error message when trying to match at the end of the string [perl #96354].</p>

</li>
<li><p>The abbreviations for four C1 control characters <code>MW</code> <code>PM</code>, <code>RI</code>, and <code>ST</code> were previously unrecognized by <code>\N{}</code>, vianame(), and string_vianame().</p>

</li>
<li><p>Mentioning a variable named &quot;&amp;&quot; other than <code>$&amp;</code> (i.e., <code>@&amp;</code> or <code>%&amp;</code>) no longer stops <code>$&amp;</code> from working. The same applies to variables named &quot;&#39;&quot; and &quot;`&quot; [perl #24237].</p>

</li>
<li><p>Creating a <code>UNIVERSAL::AUTOLOAD</code> sub no longer stops <code>%+</code>, <code>%-</code> and <code>%!</code> from working some of the time [perl #105024].</p>

</li>
</ul>

<h2 id="Smartmatching"><a class="permalink" href="perl5160delta.html#Smartmatching">#</a>Smartmatching</h2>

<ul>

<li><p><code>~~</code> now correctly handles the precedence of Any~~Object, and is not tricked by an overloaded object on the left-hand side.</p>

</li>
<li><p>In Perl 5.14.0, <code>$tainted ~~ @array</code> stopped working properly. Sometimes it would erroneously fail (when <code>$tainted</code> contained a string that occurs in the array <i>after</i> the first element) or erroneously succeed (when <code>undef</code> occurred after the first element) [perl #93590].</p>

</li>
</ul>

<h2 id="The-sort-operator"><a class="permalink" href="perl5160delta.html#The-sort-operator">#</a><a id="The7"></a>The <code>sort</code> operator</h2>

<ul>

<li><p><code>sort</code> was not treating <code>sub {}</code> and <code>sub {()}</code> as equivalent when such a sub was provided as the comparison routine. It used to croak on <code>sub {()}</code>.</p>

</li>
<li><p><code>sort</code> now works once more with custom sort routines that are XSUBs. It stopped working in 5.10.0.</p>

</li>
<li><p><code>sort</code> with a constant for a custom sort routine, although it produces unsorted results, no longer crashes. It started crashing in 5.10.0.</p>

</li>
<li><p>Warnings emitted by <code>sort</code> when a custom comparison routine returns a non-numeric value now contain &quot;in sort&quot; and show the line number of the <code>sort</code> operator, rather than the last line of the comparison routine. The warnings also now occur only if warnings are enabled in the scope where <code>sort</code> occurs. Previously the warnings would occur if enabled in the comparison routine&#39;s scope.</p>

</li>
<li><p><code>sort { $a &lt;=&gt; $b }</code>, which is optimized internally, now produces &quot;uninitialized&quot; warnings for NaNs (not-a-number values), since <code>&lt;=&gt;</code> returns <code>undef</code> for those. This brings it in line with <span style="white-space: nowrap;"><code>sort { 1; $a &lt;=&gt; $b }</code></span> and other more complex cases, which are not optimized [perl #94390].</p>

</li>
</ul>

<h2 id="The-substr-operator"><a class="permalink" href="perl5160delta.html#The-substr-operator">#</a><a id="The8"></a>The <code>substr</code> operator</h2>

<ul>

<li><p>Tied (and otherwise magical) variables are no longer exempt from the &quot;Attempt to use reference as lvalue in substr&quot; warning.</p>

</li>
<li><p>That warning now occurs when the returned lvalue is assigned to, not when <code>substr</code> itself is called. This makes a difference only if the return value of <code>substr</code> is referenced and later assigned to.</p>

</li>
<li><p>Passing a substring of a read-only value or a typeglob to a function (potential lvalue context) no longer causes an immediate &quot;Can&#39;t coerce&quot; or &quot;Modification of a read-only value&quot; error. That error occurs only if the passed value is assigned to.</p>

<p>The same thing happens with the &quot;substr outside of string&quot; error. If the lvalue is only read from, not written to, it is now just a warning, as with rvalue <code>substr</code>.</p>

</li>
<li><p><code>substr</code> assignments no longer call FETCH twice if the first argument is a tied variable, just once.</p>

</li>
</ul>

<h2 id="Support-for-embedded-nulls"><a class="permalink" href="perl5160delta.html#Support-for-embedded-nulls">#</a><a id="Support"></a>Support for embedded nulls</h2>

<p>Some parts of Perl did not work correctly with nulls (<code>chr 0</code>) embedded in strings. That meant that, for instance, <code>$m = &quot;a\0b&quot;; foo-&gt;$m</code> would call the &quot;a&quot; method, instead of the actual method name contained in $m. These parts of perl have been fixed to support nulls:</p>

<ul>

<li><p>Method names</p>

</li>
<li><p>Typeglob names (including filehandle and subroutine names)</p>

</li>
<li><p>Package names, including the return value of <code>ref()</code></p>

</li>
<li><p>Typeglob elements (<code>*foo{&quot;THING\0stuff&quot;}</code>)</p>

</li>
<li><p>Signal names</p>

</li>
<li><p>Various warnings and error messages that mention variable names or values, methods, etc.</p>

</li>
</ul>

<p>One side effect of these changes is that blessing into &quot;\0&quot; no longer causes <code>ref()</code> to return false.</p>

<h2 id="Threading-bugs"><a class="permalink" href="perl5160delta.html#Threading-bugs">#</a><a id="Threading"></a>Threading bugs</h2>

<ul>

<li><p>Typeglobs returned from threads are no longer cloned if the parent thread already has a glob with the same name. This means that returned subroutines will now assign to the right package variables [perl #107366].</p>

</li>
<li><p>Some cases of threads crashing due to memory allocation during cloning have been fixed [perl #90006].</p>

</li>
<li><p>Thread joining would sometimes emit &quot;Attempt to free unreferenced scalar&quot; warnings if <code>caller</code> had been used from the <code>DB</code> package before thread creation [perl #98092].</p>

</li>
<li><p>Locking a subroutine (via <code>lock &amp;sub</code>) is no longer a compile-time error for regular subs. For lvalue subroutines, it no longer tries to return the sub as a scalar, resulting in strange side effects like <code>ref \$_</code> returning &quot;CODE&quot; in some instances.</p>

<p><code>lock &amp;sub</code> is now a run-time error if <a href="./threads::shared.html">threads::shared</a> is loaded (a no-op otherwise), but that may be rectified in a future version.</p>

</li>
</ul>

<h2 id="Tied-variables"><a class="permalink" href="perl5160delta.html#Tied-variables">#</a><a id="Tied"></a>Tied variables</h2>

<ul>

<li><p>Various cases in which FETCH was being ignored or called too many times have been fixed:</p>

<ul>

<li><p><code>PerlIO::get_layers</code> [perl #97956]</p>

</li>
<li><p><code>$tied =~ y/a/b/</code>, <code>chop $tied</code> and <code>chomp $tied</code> when $tied holds a reference.</p>

</li>
<li><p>When calling <code>local $_</code> [perl #105912]</p>

</li>
<li><p>Four-argument <code>select</code></p>

</li>
<li><p>A tied buffer passed to <code>sysread</code></p>

</li>
<li><p><code>$tied .= &lt;&gt;</code></p>

</li>
<li><p>Three-argument <code>open</code>, the third being a tied file handle (as in <code>open $fh, &quot;&gt;&amp;&quot;, $tied</code>)</p>

</li>
<li><p><code>sort</code> with a reference to a tied glob for the comparison routine.</p>

</li>
<li><p><code>..</code> and <code>...</code> in list context [perl #53554].</p>

</li>
<li><p><code>${$tied}</code>, <code>@{$tied}</code>, <code>%{$tied}</code> and <code>*{$tied}</code> where the tied variable returns a string (<code>&amp;{}</code> was unaffected)</p>

</li>
<li><p><code>defined ${ $tied_variable }</code></p>

</li>
<li><p>Various functions that take a filehandle argument in rvalue context (<code>close</code>, <code>readline</code>, etc.) [perl #97482]</p>

</li>
<li><p>Some cases of dereferencing a complex expression, such as <code>${ (), $tied } = 1</code>, used to call <code>FETCH</code> multiple times, but now call it once.</p>

</li>
<li><p><code>$tied-&gt;method</code> where $tied returns a package name--even resulting in a failure to call the method, due to memory corruption</p>

</li>
<li><p>Assignments like <code>*$tied = \&amp;{&quot;...&quot;}</code> and <code>*glob = $tied</code></p>

</li>
<li><p><code>chdir</code>, <code>chmod</code>, <code>chown</code>, <code>utime</code>, <code>truncate</code>, <code>stat</code>, <code>lstat</code> and the filetest ops (<code>-r</code>, <code>-x</code>, etc.)</p>

</li>
</ul>

</li>
<li><p><code>caller</code> sets <code>@DB::args</code> to the subroutine arguments when called from the DB package. It used to crash when doing so if <code>@DB::args</code> happened to be tied. Now it croaks instead.</p>

</li>
<li><p>Tying an element of %ENV or <code>%^H</code> and then deleting that element would result in a call to the tie object&#39;s DELETE method, even though tying the element itself is supposed to be equivalent to tying a scalar (the element is, of course, a scalar) [perl #67490].</p>

</li>
<li><p>When Perl autovivifies an element of a tied array or hash (which entails calling STORE with a new reference), it now calls FETCH immediately after the STORE, instead of assuming that FETCH would have returned the same reference. This can make it easier to implement tied objects [perl #35865, #43011].</p>

</li>
<li><p>Four-argument <code>select</code> no longer produces its &quot;Non-string passed as bitmask&quot; warning on tied or tainted variables that are strings.</p>

</li>
<li><p>Localizing a tied scalar that returns a typeglob no longer stops it from being tied till the end of the scope.</p>

</li>
<li><p>Attempting to <code>goto</code> out of a tied handle method used to cause memory corruption or crashes. Now it produces an error message instead [perl #8611].</p>

</li>
<li><p>A bug has been fixed that occurs when a tied variable is used as a subroutine reference: if the last thing assigned to or returned from the variable was a reference or typeglob, the <code>\&amp;$tied</code> could either crash or return the wrong subroutine. The reference case is a regression introduced in Perl 5.10.0. For typeglobs, it has probably never worked till now.</p>

</li>
</ul>

<h2 id="Version-objects-and-vstrings"><a class="permalink" href="perl5160delta.html#Version-objects-and-vstrings">#</a><a id="Version1"></a>Version objects and vstrings</h2>

<ul>

<li><p>The bitwise complement operator (and possibly other operators, too) when passed a vstring would leave vstring magic attached to the return value, even though the string had changed. This meant that <code>version-&gt;new(~v1.2.3)</code> would create a version looking like &quot;v1.2.3&quot; even though the string passed to <code>version-&gt;new</code> was actually &quot;\376\375\374&quot;. This also caused <a href="./B::Deparse.html">B::Deparse</a> to deparse <code>~v1.2.3</code> incorrectly, without the <code>~</code> [perl #29070].</p>

</li>
<li><p>Assigning a vstring to a magic (e.g., tied, <code>$!</code>) variable and then assigning something else used to blow away all magic. This meant that tied variables would come undone, <code>$!</code> would stop getting updated on failed system calls, <code>$|</code> would stop setting autoflush, and other mischief would take place. This has been fixed.</p>

</li>
<li><p><code>version-&gt;new(&quot;version&quot;)</code> and <code>printf &quot;%vd&quot;, &quot;version&quot;</code> no longer crash [perl #102586].</p>

</li>
<li><p>Version comparisons, such as those that happen implicitly with <code>use v5.43</code>, no longer cause locale settings to change [perl #105784].</p>

</li>
<li><p>Version objects no longer cause memory leaks in boolean context [perl #109762].</p>

</li>
</ul>

<h2 id="Warnings,-redefinition"><a class="permalink" href="perl5160delta.html#Warnings,-redefinition">#</a><a id="Warnings"></a><a id="Warnings-redefinition"></a>Warnings, redefinition</h2>

<ul>

<li><p>Subroutines from the <code>autouse</code> namespace are once more exempt from redefinition warnings. This used to work in 5.005, but was broken in 5.6 for most subroutines. For subs created via XS that redefine subroutines from the <code>autouse</code> package, this stopped working in 5.10.</p>

</li>
<li><p>New XSUBs now produce redefinition warnings if they overwrite existing subs, as they did in 5.8.x. (The <code>autouse</code> logic was reversed in 5.10-14. Only subroutines from the <code>autouse</code> namespace would warn when clobbered.)</p>

</li>
<li><p><code>newCONSTSUB</code> used to use compile-time warning hints, instead of run-time hints. The following code should never produce a redefinition warning, but it used to, if <code>newCONSTSUB</code> redefined an existing subroutine:</p>

<pre><code>use warnings;
BEGIN {
    no warnings;
    some_XS_function_that_calls_new_CONSTSUB();
}</code></pre>

</li>
<li><p>Redefinition warnings for constant subroutines are on by default (what are known as severe warnings in <a href="perldiag.html">perldiag</a>). This occurred only when it was a glob assignment or declaration of a Perl subroutine that caused the warning. If the creation of XSUBs triggered the warning, it was not a default warning. This has been corrected.</p>

</li>
<li><p>The internal check to see whether a redefinition warning should occur used to emit &quot;uninitialized&quot; warnings in cases like this:</p>

<pre><code>use warnings &quot;uninitialized&quot;;
use constant {u =&gt; undef, v =&gt; undef};
sub foo(){u}
sub foo(){v}</code></pre>

</li>
</ul>

<h2 id="Warnings,-&quot;Uninitialized&quot;"><a class="permalink" href="perl5160delta.html#Warnings,-%22Uninitialized%22">#</a><a id="Warnings1"></a><a id="Warnings-Uninitialized"></a>Warnings, &quot;Uninitialized&quot;</h2>

<ul>

<li><p>Various functions that take a filehandle argument in rvalue context (<code>close</code>, <code>readline</code>, etc.) used to warn twice for an undefined handle [perl #97482].</p>

</li>
<li><p><code>dbmopen</code> now only warns once, rather than three times, if the mode argument is <code>undef</code> [perl #90064].</p>

</li>
<li><p>The <code>+=</code> operator does not usually warn when the left-hand side is <code>undef</code>, but it was doing so for tied variables. This has been fixed [perl #44895].</p>

</li>
<li><p>A bug fix in Perl 5.14 introduced a new bug, causing &quot;uninitialized&quot; warnings to report the wrong variable if the operator in question had two operands and one was <code>%{...}</code> or <code>@{...}</code>. This has been fixed [perl #103766].</p>

</li>
<li><p><code>..</code> and <code>...</code> in list context now mention the name of the variable in &quot;uninitialized&quot; warnings for string (as opposed to numeric) ranges.</p>

</li>
</ul>

<h2 id="Weak-references"><a class="permalink" href="perl5160delta.html#Weak-references">#</a><a id="Weak"></a>Weak references</h2>

<ul>

<li><p>Weakening the first argument to an automatically-invoked <code>DESTROY</code> method could result in erroneous &quot;DESTROY created new reference&quot; errors or crashes. Now it is an error to weaken a read-only reference.</p>

</li>
<li><p>Weak references to lexical hashes going out of scope were not going stale (becoming undefined), but continued to point to the hash.</p>

</li>
<li><p>Weak references to lexical variables going out of scope are now broken before any magical methods (e.g., DESTROY on a tie object) are called. This prevents such methods from modifying the variable that will be seen the next time the scope is entered.</p>

</li>
<li><p>Creating a weak reference to an @ISA array or accessing the array index (<code>$#ISA</code>) could result in confused internal bookkeeping for elements later added to the @ISA array. For instance, creating a weak reference to the element itself could push that weak reference on to @ISA; and elements added after use of <code>$#ISA</code> would be ignored by method lookup [perl #85670].</p>

</li>
</ul>

<h2 id="Other-notable-fixes"><a class="permalink" href="perl5160delta.html#Other-notable-fixes">#</a><a id="Other4"></a>Other notable fixes</h2>

<ul>

<li><p><code>quotemeta</code> now quotes consistently the same non-ASCII characters under <code>use feature &#39;unicode_strings&#39;</code>, regardless of whether the string is encoded in UTF-8 or not, hence fixing the last vestiges (we hope) of the notorious <a href="perlunicode.html#The-%22Unicode-Bug%22">&quot;The &quot;Unicode Bug&quot;&quot; in perlunicode</a>. [perl #77654].</p>

<p>Which of these code points is quoted has changed, based on Unicode&#39;s recommendations. See <a href="perlfunc.html#quotemeta">&quot;quotemeta&quot; in perlfunc</a> for details.</p>

</li>
<li><p><code>study</code> is now a no-op, presumably fixing all outstanding bugs related to study causing regex matches to behave incorrectly!</p>

</li>
<li><p>When one writes <code>open foo || die</code>, which used to work in Perl 4, a &quot;Precedence problem&quot; warning is produced. This warning used erroneously to apply to fully-qualified bareword handle names not followed by <code>||</code>. This has been corrected.</p>

</li>
<li><p>After package aliasing (<code>*foo:: = *bar::</code>), <code>select</code> with 0 or 1 argument would sometimes return a name that could not be used to refer to the filehandle, or sometimes it would return <code>undef</code> even when a filehandle was selected. Now it returns a typeglob reference in such cases.</p>

</li>
<li><p><code>PerlIO::get_layers</code> no longer ignores some arguments that it thinks are numeric, while treating others as filehandle names. It is now consistent for flat scalars (i.e., not references).</p>

</li>
<li><p>Unrecognized switches on <code>#!</code> line</p>

<p>If a switch, such as <b>-x</b>, that cannot occur on the <code>#!</code> line is used there, perl dies with &quot;Can&#39;t emulate...&quot;.</p>

<p>It used to produce the same message for switches that perl did not recognize at all, whether on the command line or the <code>#!</code> line.</p>

<p>Now it produces the &quot;Unrecognized switch&quot; error message [perl #104288].</p>

</li>
<li><p><code>system</code> now temporarily blocks the SIGCHLD signal handler, to prevent the signal handler from stealing the exit status [perl #105700].</p>

</li>
<li><p>The %n formatting code for <code>printf</code> and <code>sprintf</code>, which causes the number of characters to be assigned to the next argument, now actually assigns the number of characters, instead of the number of bytes.</p>

<p>It also works now with special lvalue functions like <code>substr</code> and with nonexistent hash and array elements [perl #3471, #103492].</p>

</li>
<li><p>Perl skips copying values returned from a subroutine, for the sake of speed, if doing so would make no observable difference. Because of faulty logic, this would happen with the result of <code>delete</code>, <code>shift</code> or <code>splice</code>, even if the result was referenced elsewhere. It also did so with tied variables about to be freed [perl #91844, #95548].</p>

</li>
<li><p><code>utf8::decode</code> now refuses to modify read-only scalars [perl #91850].</p>

</li>
<li><p>Freeing $_ inside a <code>grep</code> or <code>map</code> block, a code block embedded in a regular expression, or an @INC filter (a subroutine returned by a subroutine in @INC) used to result in double frees or crashes [perl #91880, #92254, #92256].</p>

</li>
<li><p><code>eval</code> returns <code>undef</code> in scalar context or an empty list in list context when there is a run-time error. When <code>eval</code> was passed a string in list context and a syntax error occurred, it used to return a list containing a single undefined element. Now it returns an empty list in list context for all errors [perl #80630].</p>

</li>
<li><p><code>goto &amp;func</code> no longer crashes, but produces an error message, when the unwinding of the current subroutine&#39;s scope fires a destructor that undefines the subroutine being &quot;goneto&quot; [perl #99850].</p>

</li>
<li><p>Perl now holds an extra reference count on the package that code is currently compiling in. This means that the following code no longer crashes [perl #101486]:</p>

<pre><code>package Foo;
BEGIN {*Foo:: = *Bar::}
sub foo;</code></pre>

</li>
<li><p>The <code>x</code> repetition operator no longer crashes on 64-bit builds with large repeat counts [perl #94560].</p>

</li>
<li><p>Calling <code>require</code> on an implicit <code>$_</code> when <code>*CORE::GLOBAL::require</code> has been overridden does not segfault anymore, and <code>$_</code> is now passed to the overriding subroutine [perl #78260].</p>

</li>
<li><p><code>use</code> and <code>require</code> are no longer affected by the I/O layers active in the caller&#39;s scope (enabled by <a href="open.html">open.pm</a>) [perl #96008].</p>

</li>
<li><p><code>our $::é; $é</code> (which is invalid) no longer produces the &quot;Compilation error at lib/utf8_heavy.pl...&quot; error message, which it started emitting in 5.10.0 [perl #99984].</p>

</li>
<li><p>On 64-bit systems, <code>read()</code> now understands large string offsets beyond the 32-bit range.</p>

</li>
<li><p>Errors that occur when processing subroutine attributes no longer cause the subroutine&#39;s op tree to leak.</p>

</li>
<li><p>Passing the same constant subroutine to both <code>index</code> and <code>formline</code> no longer causes one or the other to fail [perl #89218]. (5.14.1)</p>

</li>
<li><p>List assignment to lexical variables declared with attributes in the same statement (<code>my ($x,@y) : blimp = (72,94)</code>) stopped working in Perl 5.8.0. It has now been fixed.</p>

</li>
<li><p>Perl 5.10.0 introduced some faulty logic that made &quot;U*&quot; in the middle of a pack template equivalent to &quot;U0&quot; if the input string was empty. This has been fixed [perl #90160]. (5.14.2)</p>

</li>
<li><p>Destructors on objects were not called during global destruction on objects that were not referenced by any scalars. This could happen if an array element were blessed (e.g., <code>bless \$a[0]</code>) or if a closure referenced a blessed variable (<code>bless \my @a; sub foo { @a }</code>).</p>

<p>Now there is an extra pass during global destruction to fire destructors on any objects that might be left after the usual passes that check for objects referenced by scalars [perl #36347].</p>

</li>
<li><p>Fixed a case where it was possible that a freed buffer may have been read from when parsing a here document [perl #90128]. (5.14.1)</p>

</li>
<li><p><code>each(<i>ARRAY</i>)</code> is now wrapped in <code>defined(...)</code>, like <code>each(<i>HASH</i>)</code>, inside a <code>while</code> condition [perl #90888].</p>

</li>
<li><p>A problem with context propagation when a <code>do</code> block is an argument to <code>return</code> has been fixed. It used to cause <code>undef</code> to be returned in certain cases of a <code>return</code> inside an <code>if</code> block which itself is followed by another <code>return</code>.</p>

</li>
<li><p>Calling <code>index</code> with a tainted constant no longer causes constants in subsequently compiled code to become tainted [perl #64804].</p>

</li>
<li><p>Infinite loops like <code>1 while 1</code> used to stop <code>strict &#39;subs&#39;</code> mode from working for the rest of the block.</p>

</li>
<li><p>For list assignments like <code>($a,$b) = ($b,$a)</code>, Perl has to make a copy of the items on the right-hand side before assignment them to the left. For efficiency&#39;s sake, it assigns the values on the right straight to the items on the left if no one variable is mentioned on both sides, as in <code>($a,$b) = ($c,$d)</code>. The logic for determining when it can cheat was faulty, in that <code>&amp;&amp;</code> and <code>||</code> on the right-hand side could fool it. So <code>($a,$b) = $some_true_value &amp;&amp; ($b,$a)</code> would end up assigning the value of <code>$b</code> to both scalars.</p>

</li>
<li><p>Perl no longer tries to apply lvalue context to the string in <code>(&quot;string&quot;, $variable) ||= 1</code> (which used to be an error). Since the left-hand side of <code>||=</code> is evaluated in scalar context, that&#39;s a scalar comma operator, which gives all but the last item void context. There is no such thing as void lvalue context, so it was a mistake for Perl to try to force it [perl #96942].</p>

</li>
<li><p><code>caller</code> no longer leaks memory when called from the DB package if <code>@DB::args</code> was assigned to after the first call to <code>caller</code>. <a href="Carp.html">Carp</a> was triggering this bug [perl #97010]. (5.14.2)</p>

</li>
<li><p><code>close</code> and similar filehandle functions, when called on built-in global variables (like <code>$+</code>), used to die if the variable happened to hold the undefined value, instead of producing the usual &quot;Use of uninitialized value&quot; warning.</p>

</li>
<li><p>When autovivified file handles were introduced in Perl 5.6.0, <code>readline</code> was inadvertently made to autovivify when called as <code>readline($foo)</code> (but not as <code>&lt;$foo&gt;</code>). It has now been fixed never to autovivify.</p>

</li>
<li><p>Calling an undefined anonymous subroutine (e.g., what $x holds after <code>undef &amp;{$x = sub{}}</code>) used to cause a &quot;Not a CODE reference&quot; error, which has been corrected to &quot;Undefined subroutine called&quot; [perl #71154].</p>

</li>
<li><p>Causing <code>@DB::args</code> to be freed between uses of <code>caller</code> no longer results in a crash [perl #93320].</p>

</li>
<li><p><code>setpgrp($foo)</code> used to be equivalent to <code>($foo, setpgrp)</code>, because <code>setpgrp</code> was ignoring its argument if there was just one. Now it is equivalent to <code>setpgrp($foo,0)</code>.</p>

</li>
<li><p><code>shmread</code> was not setting the scalar flags correctly when reading from shared memory, causing the existing cached numeric representation in the scalar to persist [perl #98480].</p>

</li>
<li><p><code>++</code> and <code>--</code> now work on copies of globs, instead of dying.</p>

</li>
<li><p><code>splice()</code> doesn&#39;t warn when truncating</p>

<p>You can now limit the size of an array using <code>splice(@a,MAX_LEN)</code> without worrying about warnings.</p>

</li>
<li><p><code>$$</code> is no longer tainted. Since this value comes directly from <code>getpid()</code>, it is always safe.</p>

</li>
<li><p>The parser no longer leaks a filehandle if STDIN was closed before parsing started [perl #37033].</p>

</li>
<li><p><code>die;</code> with a non-reference, non-string, or magical (e.g., tainted) value in $@ now properly propagates that value [perl #111654].</p>

</li>
</ul>

<h1 id="Known-Problems"><a class="permalink" href="perl5160delta.html#Known-Problems">#</a><a id="Known"></a>Known Problems</h1>

<ul>

<li><p>On Solaris, we have two kinds of failure.</p>

<p>If <i>make</i> is Sun&#39;s <i>make</i>, we get an error about a badly formed macro assignment in the <i>Makefile</i>. That happens when <i>./Configure</i> tries to make depends. <i>Configure</i> then exits 0, but further <i>make</i>-ing fails.</p>

<p>If <i>make</i> is <i>gmake</i>, <i>Configure</i> completes, then we get errors related to <i>/usr/include/stdbool.h</i></p>

</li>
<li><p>On Win32, a number of tests hang unless STDERR is redirected. The cause of this is still under investigation.</p>

</li>
<li><p>When building as root with a umask that prevents files from being other-readable, <i>t/op/filetest.t</i> will fail. This is a test bug, not a bug in perl&#39;s behavior.</p>

</li>
<li><p>Configuring with a recent gcc and link-time-optimization, such as <code>Configure -Doptimize=&#39;-O2 -flto&#39;</code> fails because the optimizer optimizes away some of Configure&#39;s tests. A workaround is to omit the <code>-flto</code> flag when running Configure, but add it back in while actually building, something like</p>

<pre><code class="plaintext">sh Configure -Doptimize=-O2                                             
make OPTIMIZE=&#39;-O2 -flto&#39;                                               </code></pre>

</li>
<li><p>The following CPAN modules have test failures with perl 5.16. Patches have been submitted for all of these, so hopefully there will be new releases soon:</p>

<ul>

<li><p><a href="./Date::Pcalc.html">Date::Pcalc</a> version 6.1</p>

</li>
<li><p><a href="./Module::CPANTS::Analyse.html">Module::CPANTS::Analyse</a> version 0.85</p>

<p>This fails due to problems in <a href="./Module::Find.html">Module::Find</a> 0.10 and <a href="./File::MMagic.html">File::MMagic</a> 1.27.</p>

</li>
<li><p><a href="./PerlIO::Util.html">PerlIO::Util</a> version 0.72</p>

</li>
</ul>

</li>
</ul>

<h1 id="Acknowledgements"><a class="permalink" href="perl5160delta.html#Acknowledgements">#</a>Acknowledgements</h1>

<p>Perl 5.16.0 represents approximately 12 months of development since Perl 5.14.0 and contains approximately 590,000 lines of changes across 2,500 files from 139 authors.</p>

<p>Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.16.0:</p>

<p>Aaron Crane, Abhijit Menon-Sen, Abigail, Alan Haggai Alavi, Alberto Simões, Alexandr Ciornii, Andreas König, Andy Dougherty, Aristotle Pagaltzis, Bo Johansson, Bo Lindbergh, Breno G. de Oliveira, brian d foy, Brian Fraser, Brian Greenfield, Carl Hayter, Chas. Owens, Chia-liang Kao, Chip Salzenberg, Chris &#39;BinGOs&#39; Williams, Christian Hansen, Christopher J. Madsen, chromatic, Claes Jacobsson, Claudio Ramirez, Craig A. Berry, Damian Conway, Daniel Kahn Gillmor, Darin McBride, Dave Rolsky, David Cantrell, David Golden, David Leadbeater, David Mitchell, Dee Newcum, Dennis Kaarsemaker, Dominic Hargreaves, Douglas Christopher Wilson, Eric Brine, Father Chrysostomos, Florian Ragwitz, Frederic Briere, George Greer, Gerard Goossen, Gisle Aas, H.Merijn Brand, Hojung Youn, Ian Goodacre, James E Keenan, Jan Dubois, Jerry D. Hedden, Jesse Luehrs, Jesse Vincent, Jilles Tjoelker, Jim Cromie, Jim Meyering, Joel Berger, Johan Vromans, Johannes Plunien, John Hawkinson, John P. Linderman, John Peacock, Joshua ben Jore, Juerd Waalboer, Karl Williamson, Karthik Rajagopalan, Keith Thompson, Kevin J. Woolley, Kevin Ryde, Laurent Dami, Leo Lapworth, Leon Brocard, Leon Timmermans, Louis Strous, Lukas Mai, Marc Green, Marcel Grünauer, Mark A. Stratman, Mark Dootson, Mark Jason Dominus, Martin Hasch, Matthew Horsfall, Max Maischein, Michael G Schwern, Michael Witten, Mike Sheldrake, Moritz Lenz, Nicholas Clark, Niko Tyni, Nuno Carvalho, Pau Amma, Paul Evans, Paul Green, Paul Johnson, Perlover, Peter John Acklam, Peter Martini, Peter Scott, Phil Monsen, Pino Toscano, Rafael Garcia-Suarez, Rainer Tammer, Reini Urban, Ricardo Signes, Robin Barker, Rodolfo Carvalho, Salvador Fandiño, Sam Kimbrel, Samuel Thibault, Shawn M Moore, Shigeya Suzuki, Shirakata Kentaro, Shlomi Fish, Sisyphus, Slaven Rezic, Spiros Denaxas, Steffen Müller, Steffen Schwigon, Stephen Bennett, Stephen Oberholtzer, Stevan Little, Steve Hay, Steve Peters, Thomas Sibley, Thorsten Glaser, Timothe Litt, Todd Rinaldo, Tom Christiansen, Tom Hukins, Tony Cook, Vadim Konovalov, Vincent Pit, Vladimir Timofeev, Walt Mankowski, Yves Orton, Zefram, Zsbán Ambrus, Ævar Arnfjörð Bjarmason.</p>

<p>The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.</p>

<p>Many of the changes included in this version originated in the CPAN modules included in Perl&#39;s core. We&#39;re grateful to the entire CPAN community for helping Perl to flourish.</p>

<p>For a more complete list of all of Perl&#39;s historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl5160delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at <a href="http://rt.perl.org/perlbug/">http://rt.perl.org/perlbug/</a>. There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a>, the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <a href="perlbug.html">perlbug</a> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.</p>

<p>If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5-security-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please use this address only for security issues in the Perl core, not for modules independently distributed on CPAN.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5160delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
